fix: remove leftover AutoRun, replace checkbox with switch in file list
This commit is contained in:
@@ -262,7 +262,6 @@ func handleAppCheckUpdate(c *gin.Context) {
|
|||||||
"entry_file": latestVersion.EntryFile,
|
"entry_file": latestVersion.EntryFile,
|
||||||
"entry_files": latestVersion.EntryFiles,
|
"entry_files": latestVersion.EntryFiles,
|
||||||
"desktop_shortcut_files": latestVersion.DesktopShortcutFiles,
|
"desktop_shortcut_files": latestVersion.DesktopShortcutFiles,
|
||||||
"auto_run": latestVersion.AutoRun,
|
|
||||||
"default_install_dir": latestVersion.DefaultInstallDir,
|
"default_install_dir": latestVersion.DefaultInstallDir,
|
||||||
"update_notes": latestVersion.Description,
|
"update_notes": latestVersion.Description,
|
||||||
"update_strategy": updateStrategy,
|
"update_strategy": updateStrategy,
|
||||||
|
|||||||
@@ -675,20 +675,16 @@ onMounted(() => {
|
|||||||
{{ formatFileSize(file.file_size) }}
|
{{ formatFileSize(file.file_size) }}
|
||||||
</td>
|
</td>
|
||||||
<td class="p-2 text-center">
|
<td class="p-2 text-center">
|
||||||
<input
|
<UiSwitch
|
||||||
type="checkbox"
|
|
||||||
:checked="formData.entry_files.includes(file.file_path)"
|
:checked="formData.entry_files.includes(file.file_path)"
|
||||||
class="h-4 w-4 rounded border-gray-300 cursor-pointer"
|
@update:checked="toggleEntryFile(file.file_path)"
|
||||||
@change="toggleEntryFile(file.file_path)"
|
/>
|
||||||
>
|
|
||||||
</td>
|
</td>
|
||||||
<td class="p-2 text-center">
|
<td class="p-2 text-center">
|
||||||
<input
|
<UiSwitch
|
||||||
type="checkbox"
|
|
||||||
:checked="formData.desktop_shortcut_files.includes(file.file_path)"
|
:checked="formData.desktop_shortcut_files.includes(file.file_path)"
|
||||||
class="h-4 w-4 rounded border-gray-300 cursor-pointer"
|
@update:checked="toggleDesktopShortcut(file.file_path)"
|
||||||
@change="toggleDesktopShortcut(file.file_path)"
|
/>
|
||||||
>
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|||||||
@@ -596,20 +596,16 @@ onMounted(() => {
|
|||||||
{{ formatFileSize(file.file_size) }}
|
{{ formatFileSize(file.file_size) }}
|
||||||
</td>
|
</td>
|
||||||
<td class="p-2 text-center">
|
<td class="p-2 text-center">
|
||||||
<input
|
<UiSwitch
|
||||||
type="checkbox"
|
|
||||||
:checked="formData.entry_files.includes(file.file_path)"
|
:checked="formData.entry_files.includes(file.file_path)"
|
||||||
class="h-4 w-4 rounded border-gray-300 cursor-pointer"
|
@update:checked="toggleEntryFile(file.file_path)"
|
||||||
@change="toggleEntryFile(file.file_path)"
|
/>
|
||||||
>
|
|
||||||
</td>
|
</td>
|
||||||
<td class="p-2 text-center">
|
<td class="p-2 text-center">
|
||||||
<input
|
<UiSwitch
|
||||||
type="checkbox"
|
|
||||||
:checked="formData.desktop_shortcut_files.includes(file.file_path)"
|
:checked="formData.desktop_shortcut_files.includes(file.file_path)"
|
||||||
class="h-4 w-4 rounded border-gray-300 cursor-pointer"
|
@update:checked="toggleDesktopShortcut(file.file_path)"
|
||||||
@change="toggleDesktopShortcut(file.file_path)"
|
/>
|
||||||
>
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|||||||
Reference in New Issue
Block a user