{{ $t(`objects.heightClass.${item.heightClass}`) }}
diff --git a/packages/nc-gui/components/smartsheet/toolbar/ViewActionMenu.vue b/packages/nc-gui/components/smartsheet/toolbar/ViewActionMenu.vue
index b171b0c9c1..65a0efd5bc 100644
--- a/packages/nc-gui/components/smartsheet/toolbar/ViewActionMenu.vue
+++ b/packages/nc-gui/components/smartsheet/toolbar/ViewActionMenu.vue
@@ -3,11 +3,16 @@ import type { TableType, ViewType } from 'nocodb-sdk'
import { ViewTypes } from 'nocodb-sdk'
import { LockType } from '~/lib'
-const props = defineProps<{
- view: ViewType
- table: TableType
- inSidebar: boolean
-}>()
+const props = withDefaults(
+ defineProps<{
+ view: ViewType
+ table: TableType
+ inSidebar?: boolean
+ }>(),
+ {
+ inSidebar: false,
+ },
+)
const emits = defineEmits(['rename', 'closeModal', 'delete'])
diff --git a/packages/nc-gui/components/workspace/CollaboratorsList.vue b/packages/nc-gui/components/workspace/CollaboratorsList.vue
index f40602c2d2..cdd342a7b9 100644
--- a/packages/nc-gui/components/workspace/CollaboratorsList.vue
+++ b/packages/nc-gui/components/workspace/CollaboratorsList.vue
@@ -8,7 +8,7 @@ const workspaceStore = useWorkspace()
const { removeCollaborator, updateCollaborator: _updateCollaborator } = workspaceStore
-const { collaborators } = storeToRefs(workspaceStore)
+const { collaborators, workspaceRole } = storeToRefs(workspaceStore)
const { sorts, sortDirection, loadSorts, saveOrUpdate, handleGetSortedData } = useUserSorts('Workspace')
@@ -118,7 +118,7 @@ onMounted(async () => {
:roles="accessibleRoles"
:description="false"
class="cursor-pointer"
- :on-role-change="(role: WorkspaceUserRoles) => updateCollaborator(collab, role)"
+ :on-role-change="(role) => updateCollaborator(collab, role)"
/>
diff --git a/packages/nc-gui/components/workspace/InviteSection.vue b/packages/nc-gui/components/workspace/InviteSection.vue
index 0f88e387ed..48b2fbe87a 100644
--- a/packages/nc-gui/components/workspace/InviteSection.vue
+++ b/packages/nc-gui/components/workspace/InviteSection.vue
@@ -1,5 +1,6 @@
@@ -242,7 +245,7 @@ const onPaste = (e: ClipboardEvent) => {
class="px-1 min-w-[152px] nc-invite-role-selector"
:role="inviteData.roles"
:roles="allowedRoles"
- :on-role-change="(role: WorkspaceUserRoles) => (inviteData.roles = role)"
+ :on-role-change="onRoleChange"
:description="true"
/>
diff --git a/packages/nc-gui/composables/useExpandedFormStore.ts b/packages/nc-gui/composables/useExpandedFormStore.ts
index 43236a7743..96cf8e78ff 100644
--- a/packages/nc-gui/composables/useExpandedFormStore.ts
+++ b/packages/nc-gui/composables/useExpandedFormStore.ts
@@ -304,7 +304,7 @@ const [useProvideExpandedFormStore, useExpandedFormStore] = useInjectionState((m
}
const loadRow = async (rowId?: string, onlyVirtual = false) => {
- if (isPublic.value) return
+ if (isPublic.value || !meta.value?.id) return
let record = await $api.dbTableRow.read(
NOCO,
// todo: base_id missing on view type
diff --git a/packages/nc-gui/pages/account/index/[page].vue b/packages/nc-gui/pages/account/index/[page].vue
index 9650cb5152..f957e10fbb 100644
--- a/packages/nc-gui/pages/account/index/[page].vue
+++ b/packages/nc-gui/pages/account/index/[page].vue
@@ -3,9 +3,10 @@ const { appInfo } = useGlobal()
-
-
-
-
-
+
diff --git a/packages/nc-gui/store/workspace.ts b/packages/nc-gui/store/workspace.ts
index 36f6d1df16..3d5751c8c2 100644
--- a/packages/nc-gui/store/workspace.ts
+++ b/packages/nc-gui/store/workspace.ts
@@ -48,6 +48,8 @@ export const useWorkspace = defineStore('workspaceStore', () => {
return { id: 'default', title: 'default', meta: {}, roles: '' } as any
})
+ const workspaceRole = computed(() => activeWorkspace.value?.roles)
+
const activeWorkspaceMeta = computed>(() => {
const defaultMeta = {}
if (!activeWorkspace.value) return defaultMeta
@@ -253,6 +255,7 @@ export const useWorkspace = defineStore('workspaceStore', () => {
isWorkspaceSettingsPageOpened,
workspaceUserCount,
getPlanLimit,
+ workspaceRole,
}
})