Skip to content

πŸ”₯ πŸ”₯ πŸ”₯ A Free & Self-hostable Airtable Alternative

fix(nc-gui): typo

Ramesh Manea895b7590c7e
diff --git a/packages/nc-gui/components/dashboard/TreeView/Views/Node.vue b/packages/nc-gui/components/dashboard/TreeView/Views/Node.vue
index fbedcb465d..1c46e6ceca 100644
--- a/packages/nc-gui/components/dashboard/TreeView/Views/Node.vue
+++ b/packages/nc-gui/components/dashboard/TreeView/Views/Node.vue
@@ -393,7 +393,7 @@ watch(isDropdownOpen, async () => {
>
<GeneralUserIcon
:user="idUserMap[vModel.owned_by]"
- :initial-legth="1"
+ :initials-length="1"
size="auto"
class="flex-none !h-[14px] !min-h-[14px]"
:class="{
diff --git a/packages/nc-gui/components/general/UserIcon.vue b/packages/nc-gui/components/general/UserIcon.vue
index 1e7b19182d..5f9f97ea78 100644
--- a/packages/nc-gui/components/general/UserIcon.vue
+++ b/packages/nc-gui/components/general/UserIcon.vue
@@ -12,7 +12,7 @@ const props = withDefaults(
iconBgColor?: string
showPlaceholderIcon?: boolean
isDeleted?: boolean
- initialLegth?: 1 | 2
+ initialsLength?: 1 | 2
}>(),
{
user: () => ({}),
@@ -23,7 +23,7 @@ const props = withDefaults(
iconBgColor: '#F4F4F5',
showPlaceholderIcon: false,
isDeleted: false,
- initialLegth: 2,
+ initialsLength: 2,
},
)
@@ -111,10 +111,10 @@ const usernameInitials = computed(() => {
if (displayNameSplit.length > 1) {
return displayNameSplit[0][0] + displayNameSplit[1][0]
} else {
- return user.value.display_name.slice(0, props.initialLegth)
+ return user.value.display_name.slice(0, props.initialsLength)
}
} else {
- return user.value.email?.split('@')[0].slice(0, props.initialLegth)
+ return user.value.email?.split('@')[0].slice(0, props.initialsLength)
}
})
</script>
diff --git a/packages/nc-gui/components/smartsheet/toolbar/ViewInfo.vue b/packages/nc-gui/components/smartsheet/toolbar/ViewInfo.vue
index 7ac28abdb2..e3aa8353b8 100644
--- a/packages/nc-gui/components/smartsheet/toolbar/ViewInfo.vue
+++ b/packages/nc-gui/components/smartsheet/toolbar/ViewInfo.vue
@@ -254,7 +254,7 @@ const viewModeInfo = computed(() => {
>
<GeneralUserIcon
:user="idUserMap[activeView.owned_by]"
- :initial-legth="1"
+ :initials-length="1"
size="auto"
class="flex-none !h-[14px] !min-h-[14px]"
:class="{