Skip to content

Commit

Permalink
[MS] Hide close button when job is done
Browse files Browse the repository at this point in the history
  • Loading branch information
fabienSvstr committed Feb 13, 2025
1 parent bbd32f2 commit 3056a3a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions client/src/views/users/BulkRoleAssignmentModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@
fill="clear"
size="default"
@click="cancel"
v-if="showCloseButton"
>
{{ $msTranslate('MyProfilePage.cancelButton') }}
</ion-button>
Expand Down Expand Up @@ -192,6 +193,7 @@ const targetUser: Ref<UserInfo | undefined> = ref();
const currentPage: Ref<Steps> = ref(Steps.SelectUser);
const roleUpdates: Ref<WorkspaceRoleUpdate[]> = ref([]);
const finished = ref(false);
const showCloseButton = ref(true);

const props = defineProps<{
sourceUser: UserInfo;
Expand Down Expand Up @@ -317,6 +319,7 @@ async function nextStep(): Promise<void> {
if (roleUpdates.value.length === 0 || finished.value) {
await modalController.dismiss(null, MsModalResult.Confirm);
} else {
showCloseButton.value = false;
await assignNewRoles();
}
}
Expand Down

0 comments on commit 3056a3a

Please sign in to comment.