Browse Source

fix: Added Default View title to Topbar

pull/6444/head
Muhammed Mustafa 1 year ago
parent
commit
12581fc64e
  1. 8
      packages/nc-gui/components/smartsheet/toolbar/ViewInfo.vue
  2. 3
      packages/nc-gui/lang/en.json

8
packages/nc-gui/components/smartsheet/toolbar/ViewInfo.vue

@ -28,11 +28,7 @@ const { activeTable } = storeToRefs(useTablesStore())
</template>
</LazyGeneralEmojiPicker>
<span
class="text-ellipsis overflow-hidden pl-1 max-w-1/2"
:class="{
'text-gray-500': !selectedView?.is_default,
'text-gray-700': selectedView?.is_default,
}"
class="text-ellipsis overflow-hidden pl-1 max-w-1/2 text-gray-500"
:style="{ wordBreak: 'keep-all', whiteSpace: 'nowrap', display: 'inline' }"
>
{{ activeTable?.title }}
@ -46,7 +42,7 @@ const { activeTable } = storeToRefs(useTablesStore())
</LazyGeneralEmojiPicker>
<span class="truncate pl-1.25 text-gray-700 max-w-28/100">
{{ selectedView?.title }}
{{ selectedView?.is_default ? $t('title.defaultView') : selectedView?.title }}
</span>
<LazySmartsheetToolbarReload v-if="openedViewsTab === 'view'" />

3
packages/nc-gui/lang/en.json

@ -281,7 +281,8 @@
"resetPasswordMenu": "Reset Password",
"tokens": "Tokens",
"userManagement": "User Management",
"licence": "Licence"
"licence": "Licence",
"defaultView": "Default View"
},
"labels": {
"searchProjects": "Search Projects",

Loading…
Cancel
Save