|
|
@ -27,7 +27,7 @@ definePageMeta({ |
|
|
|
title: 'title.myProject', |
|
|
|
title: 'title.myProject', |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
const { $api, $e, $events } = useNuxtApp() |
|
|
|
const { $api, $e, $jobs } = useNuxtApp() |
|
|
|
|
|
|
|
|
|
|
|
const { api, isLoading } = useApi() |
|
|
|
const { api, isLoading } = useApi() |
|
|
|
|
|
|
|
|
|
|
@ -95,7 +95,7 @@ const duplicateProject = (project: ProjectType) => { |
|
|
|
|
|
|
|
|
|
|
|
await loadProjects() |
|
|
|
await loadProjects() |
|
|
|
|
|
|
|
|
|
|
|
$events.subscribe(jobData.name, jobData.id, async (data: { status: string }) => { |
|
|
|
$jobs.subscribe(jobData.name, jobData.id, async (data: { status: string }) => { |
|
|
|
if (data.status === 'completed') { |
|
|
|
if (data.status === 'completed') { |
|
|
|
await loadProjects() |
|
|
|
await loadProjects() |
|
|
|
} else if (data.status === 'failed') { |
|
|
|
} else if (data.status === 'failed') { |
|
|
|