Browse Source

refactor: remove prefix from table name(meta sync)

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/914/head
Pranav C 3 years ago
parent
commit
eae6d93317
  1. 9
      packages/nc-gui/components/project/projectMetadata/sync/disableOrEnableTables.vue

9
packages/nc-gui/components/project/projectMetadata/sync/disableOrEnableTables.vue

@ -80,11 +80,11 @@
<!-- v-if="model.alias.toLowerCase().indexOf(filter.toLowerCase()) > -1">-->
<td>
<v-icon small :color="viewIcons[model.type==='table'?'grid':'view'].color" v-on="on">
{{ viewIcons[model.type==='table'?'grid':'view'].icon }}
{{ viewIcons[model.type === 'table' ? 'grid' : 'view'].icon }}
</v-icon>
<v-tooltip bottom>
<template #activator="{on}">
<span v-on="on">{{ model.tn }}</span>
<span v-on="on">{{ model.tn && model.tn.slice(prefix.length) }}</span>
</template>
<span class="caption">{{ model.title }}</span>
</v-tooltip>
@ -424,7 +424,10 @@ export default {
computed: {
...mapGetters({
dbAliasList: 'project/GtrDbAliasList'
})
}),
prefix() {
return this.$store.getters['project/GtrProjectPrefix'] || ''
}
/* enableCountText() {
return this.models
? `${this.models.filter(m => m.enabled).length}/${this.models.length} enabled`

Loading…
Cancel
Save