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

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

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

Loading…
Cancel
Save