Browse Source

fix: onStatus for duplicate project

Signed-off-by: mertmit <mertmit99@gmail.com>
feat/export-nest-dir-restructure
mertmit 2 years ago committed by starbirdtech383
parent
commit
9f002b2a53
  1. 6
      packages/nc-gui/pages/index/index/index.vue

6
packages/nc-gui/pages/index/index/index.vue

@ -95,10 +95,10 @@ const duplicateProject = (project: ProjectType) => {
await loadProjects() await loadProjects()
$jobs.subscribe({ name: jobData.name, id: jobData.id }, null, async (data: { status: string }) => { $jobs.subscribe({ name: jobData.name, id: jobData.id }, null, async (status: string) => {
if (data.status === 'completed') { if (status === 'completed') {
await loadProjects() await loadProjects()
} else if (data.status === 'failed') { } else if (status === 'failed') {
message.error('Failed to duplicate project') message.error('Failed to duplicate project')
await loadProjects() await loadProjects()
} }

Loading…
Cancel
Save