[Cleanup] Fix file and variable names to match usage (#2458)

This commit is contained in:
filtered
2025-02-07 06:48:24 +11:00
committed by GitHub
parent 78e4161c51
commit 774ed4178f
3 changed files with 3 additions and 3 deletions

View File

@@ -114,7 +114,7 @@ const router = createRouter({
{
path: 'desktop-update',
name: 'DesktopUpdateView',
component: () => import('@/views/DesktopUpdate.vue'),
component: () => import('@/views/DesktopUpdateView.vue'),
beforeEnter: guardElectronAccess
}
]

View File

@@ -100,7 +100,7 @@ export const useMaintenanceTaskStore = defineStore('maintenanceTask', () => {
// Task list
const tasks = ref(DESKTOP_MAINTENANCE_TASKS)
const taskStates = ref(
const taskRunners = ref(
new Map<MaintenanceTask['id'], MaintenanceTaskRunner>(
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
* @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.