Browse Source

cleanup

pull/5114/head
Daniel Spaude 2 years ago
parent
commit
6f1a3e8dc8
No known key found for this signature in database
GPG Key ID: 654A3D1FA4F35FFE
  1. 4
      packages/nc-gui/components/dashboard/TreeView.vue
  2. 3
      packages/nc-gui/lang/en.json
  3. 5
      packages/nc-gui/pages/[projectType]/[projectId]/index.vue

4
packages/nc-gui/components/dashboard/TreeView.vue

@ -31,9 +31,6 @@ import {
import MdiView from '~icons/mdi/eye-circle-outline'
import MdiTableLarge from '~icons/mdi/table-large'
const emit = defineEmits(['clickedTableLink'])
const { isMobileMode } = useGlobal()
const { addTab, updateTab } = useTabs()
@ -171,7 +168,6 @@ const reloadTables = async () => {
}
const addTableTab = (table: TableType) => {
emit('clickedTableLink')
addTab({ title: table.title, id: table.id, type: table.type as TabType })
}

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

@ -465,7 +465,8 @@
"map": {
"mappedBy": "Mapped By",
"chooseMappingField": "Choose a Mapping Field"
}
},
"toggleMobileMode": "Toggle Mobile Mode"
},
"tooltip": {
"saveChanges": "Save changes",

5
packages/nc-gui/pages/[projectType]/[projectId]/index.vue

@ -66,8 +66,6 @@ const dataSourcesState = ref<string>('')
const dropdownOpen = ref(false)
const activeView = ref()
/** Sidebar ref */
const sidebar = ref()
@ -404,8 +402,7 @@ useEventListener(document, 'keydown', async (e: KeyboardEvent) => {
@click.stop="setIsMobileMode(!isMobileMode)"
>
<MaterialSymbolsMobileFriendly class="group-hover:text-accent" />
<!-- TODO: use i18n here -->
Toggle Mobile Mode
{{ $t('activity.toggleMobileMode') }}
</div>
</a-menu-item>

Loading…
Cancel
Save