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_files": latestVersion.EntryFiles,
|
||||
"desktop_shortcut_files": latestVersion.DesktopShortcutFiles,
|
||||
"auto_run": latestVersion.AutoRun,
|
||||
"default_install_dir": latestVersion.DefaultInstallDir,
|
||||
"update_notes": latestVersion.Description,
|
||||
"update_strategy": updateStrategy,
|
||||
|
||||
@@ -675,20 +675,16 @@ onMounted(() => {
|
||||
{{ formatFileSize(file.file_size) }}
|
||||
</td>
|
||||
<td class="p-2 text-center">
|
||||
<input
|
||||
type="checkbox"
|
||||
<UiSwitch
|
||||
:checked="formData.entry_files.includes(file.file_path)"
|
||||
class="h-4 w-4 rounded border-gray-300 cursor-pointer"
|
||||
@change="toggleEntryFile(file.file_path)"
|
||||
>
|
||||
@update:checked="toggleEntryFile(file.file_path)"
|
||||
/>
|
||||
</td>
|
||||
<td class="p-2 text-center">
|
||||
<input
|
||||
type="checkbox"
|
||||
<UiSwitch
|
||||
:checked="formData.desktop_shortcut_files.includes(file.file_path)"
|
||||
class="h-4 w-4 rounded border-gray-300 cursor-pointer"
|
||||
@change="toggleDesktopShortcut(file.file_path)"
|
||||
>
|
||||
@update:checked="toggleDesktopShortcut(file.file_path)"
|
||||
/>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
||||
@@ -596,20 +596,16 @@ onMounted(() => {
|
||||
{{ formatFileSize(file.file_size) }}
|
||||
</td>
|
||||
<td class="p-2 text-center">
|
||||
<input
|
||||
type="checkbox"
|
||||
<UiSwitch
|
||||
:checked="formData.entry_files.includes(file.file_path)"
|
||||
class="h-4 w-4 rounded border-gray-300 cursor-pointer"
|
||||
@change="toggleEntryFile(file.file_path)"
|
||||
>
|
||||
@update:checked="toggleEntryFile(file.file_path)"
|
||||
/>
|
||||
</td>
|
||||
<td class="p-2 text-center">
|
||||
<input
|
||||
type="checkbox"
|
||||
<UiSwitch
|
||||
:checked="formData.desktop_shortcut_files.includes(file.file_path)"
|
||||
class="h-4 w-4 rounded border-gray-300 cursor-pointer"
|
||||
@change="toggleDesktopShortcut(file.file_path)"
|
||||
>
|
||||
@update:checked="toggleDesktopShortcut(file.file_path)"
|
||||
/>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
||||
Reference in New Issue
Block a user