From 2bd0da08e2375ae688b9edf76ca70ef4f16c5ff3 Mon Sep 17 00:00:00 2001 From: nivedin Date: Thu, 21 Mar 2024 19:58:00 +0530 Subject: [PATCH] refactor: close modal after resolve and remove spinner in team card --- .../src/components/teams/Team.vue | 250 +++++++++--------- 1 file changed, 123 insertions(+), 127 deletions(-) diff --git a/packages/hoppscotch-common/src/components/teams/Team.vue b/packages/hoppscotch-common/src/components/teams/Team.vue index f8e854a350e..f07e65e3324 100644 --- a/packages/hoppscotch-common/src/components/teams/Team.vue +++ b/packages/hoppscotch-common/src/components/teams/Team.vue @@ -3,137 +3,131 @@ class="flex flex-1 flex-col rounded border border-divider" @contextmenu.prevent="!compact ? options.tippy.show() : null" > -
- - {{ t("state.loading") }} -
- + /> + + + + + + { const currentWorkspace = workspaceService.currentWorkspace.value - // If the current workspace is the deleted team, change the workspace to personal + // If the current workspace is the deleted workspace, change the workspace to personal if ( currentWorkspace.type === "team" && currentWorkspace.teamID === props.teamID ) { workspaceService.changeWorkspace({ type: "personal" }) } + + confirmRemove.value = false } ) )() // Tasks (and TEs) are lazy, so call the function returned