Skip to content

🔥 🔥 🔥 A Free & Self-hostable Airtable Alternative

fix(nc-gui): improve modal content

Ramesh Mane945ca69bd1ea
diff --git a/packages/nc-gui/components/workspace/CollaboratorsList.vue b/packages/nc-gui/components/workspace/CollaboratorsList.vue
index d4efacda90..0d8166df26 100644
--- a/packages/nc-gui/components/workspace/CollaboratorsList.vue
+++ b/packages/nc-gui/components/workspace/CollaboratorsList.vue
@@ -195,10 +195,9 @@ const onCancelRoleChangeConfirmationModal = () => {
}
const onConfirmRoleChangeConfirmationModal = () => {
- console.log('onConfirmRoleChangeConfirmationModal', userRoleUpdateInfo.value)
userRoleUpdateInfo.value.showConfirmationModal = false
- updateCollaborator(userRoleUpdateInfo.value.collab, userRoleUpdateInfo.value.roles, userRoleUpdateInfo.value.overrideBaseRole)
+ updateCollaborator(userRoleUpdateInfo.value.collab, userRoleUpdateInfo.value.roles!, userRoleUpdateInfo.value.overrideBaseRole)
}
const isOwnerOrCreator = computed(() => {
@@ -574,7 +573,15 @@ const removeCollaborator = (userId: string, workspaceId: string) => {
@cancel="onCancelRoleChangeConfirmationModal"
@ok="onConfirmRoleChangeConfirmationModal"
>
- <template #title> {{ $t('title.changeWorkspaceRole') }} to {{ userRoleUpdateInfo.roles }}</template>
+ <template #title>
+ <div>
+ <div class="inline-flex !align-top mr-2">
+ {{ $t('title.changeWorkspaceRoleTo') }}
+ </div>
+
+ <RolesBadge :border="false" :role="userRoleUpdateInfo.roles" class="inline-flex text-body"> </RolesBadge>
+ </div>
+ </template>
<template #extraContent>
<div class="flex flex-col gap-5 text-caption text-nc-content-gray">
<NcAlert
diff --git a/packages/nc-gui/lang/en.json b/packages/nc-gui/lang/en.json
index ba853e8739..43c7f970a9 100644
--- a/packages/nc-gui/lang/en.json
+++ b/packages/nc-gui/lang/en.json
@@ -950,7 +950,7 @@
"confirmLeaveWorkspaceSubtile": "If you leave this workspace, you will lose access to all the bases and data within this workspace. You’ll need an invitation to rejoin.",
"confirmRemoveMemberFromWorkspaceTitle": "Are you sure you want to remove member from workspace?",
"confirmRemoveMemberFromWorkspaceSubtitle": "If you remove, they will lose access to all bases and data within this workspace. They’ll need an invitation to rejoin.",
- "changeWorkspaceRole": "Change Workspace Role"
+ "changeWorkspaceRoleTo": "Change Workspace Role to"
},
"labels": {
"hideEditor": "Hide Editor",