mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-29 18:52:19 +00:00
[Cleanup] Fix file and variable names to match usage (#2458)
This commit is contained in:
@@ -114,7 +114,7 @@ const router = createRouter({
|
|||||||
{
|
{
|
||||||
path: 'desktop-update',
|
path: 'desktop-update',
|
||||||
name: 'DesktopUpdateView',
|
name: 'DesktopUpdateView',
|
||||||
component: () => import('@/views/DesktopUpdate.vue'),
|
component: () => import('@/views/DesktopUpdateView.vue'),
|
||||||
beforeEnter: guardElectronAccess
|
beforeEnter: guardElectronAccess
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -100,7 +100,7 @@ export const useMaintenanceTaskStore = defineStore('maintenanceTask', () => {
|
|||||||
// Task list
|
// Task list
|
||||||
const tasks = ref(DESKTOP_MAINTENANCE_TASKS)
|
const tasks = ref(DESKTOP_MAINTENANCE_TASKS)
|
||||||
|
|
||||||
const taskStates = ref(
|
const taskRunners = ref(
|
||||||
new Map<MaintenanceTask['id'], MaintenanceTaskRunner>(
|
new Map<MaintenanceTask['id'], MaintenanceTaskRunner>(
|
||||||
DESKTOP_MAINTENANCE_TASKS.map((x) => [x.id, new MaintenanceTaskRunner(x)])
|
DESKTOP_MAINTENANCE_TASKS.map((x) => [x.id, new MaintenanceTaskRunner(x)])
|
||||||
)
|
)
|
||||||
@@ -116,7 +116,7 @@ export const useMaintenanceTaskStore = defineStore('maintenanceTask', () => {
|
|||||||
* @param task Task to get the matching state object for
|
* @param task Task to get the matching state object for
|
||||||
* @returns The state object for this task
|
* @returns The state object for this task
|
||||||
*/
|
*/
|
||||||
const getRunner = (task: MaintenanceTask) => taskStates.value.get(task.id)!
|
const getRunner = (task: MaintenanceTask) => taskRunners.value.get(task.id)!
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Updates the task list with the latest validation state.
|
* Updates the task list with the latest validation state.
|
||||||
|
|||||||
Reference in New Issue
Block a user