Browse Source

fix(gui): rerender component when title changes

re #4686 - lengthy view name needs to be truncated in toolbar view

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/4696/head
Pranav C 2 years ago
parent
commit
9083f185f8
  1. 1
      packages/nc-gui/components.d.ts
  2. 2
      packages/nc-gui/components/smartsheet/toolbar/ViewActions.vue

1
packages/nc-gui/components.d.ts vendored

@ -90,6 +90,7 @@ declare module '@vue/runtime-core' {
LogosMysqlIcon: typeof import('~icons/logos/mysql-icon')['default']
LogosPostgresql: typeof import('~icons/logos/postgresql')['default']
LogosRedditIcon: typeof import('~icons/logos/reddit-icon')['default']
LogosSnowflakeIcon: typeof import('~icons/logos/snowflake-icon')['default']
LogosSwagger: typeof import('~icons/logos/swagger')['default']
MaterialSymbolsAccountTreeRounded: typeof import('~icons/material-symbols/account-tree-rounded')['default']
MaterialSymbolsArrowCircleLeftRounded: typeof import('~icons/material-symbols/arrow-circle-left-rounded')['default']

2
packages/nc-gui/components/smartsheet/toolbar/ViewActions.vue

@ -95,7 +95,7 @@ useMenuCloseOnEsc(open)
<GeneralViewIcon :meta="selectedView"></GeneralViewIcon>
<span class="!text-sm font-weight-normal">
<GeneralTruncateText>{{ selectedView?.title }}</GeneralTruncateText>
<GeneralTruncateText :key="selectedView?.title">{{ selectedView?.title }}</GeneralTruncateText>
</span>
<component :is="Icon" class="text-gray-500" :class="`nc-icon-${selectedView?.lock_type}`" />

Loading…
Cancel
Save