mirror of
https://github.com/nocodb/nocodb.git
synced 2026-05-02 23:17:23 +00:00
chore(nc-gui): lint
This commit is contained in:
@@ -29,8 +29,6 @@ const { loadProject } = basesStore
|
||||
|
||||
const { activeProjectId } = storeToRefs(basesStore)
|
||||
|
||||
const { loadProjectTables } = useTablesStore()
|
||||
|
||||
const { activeTable } = storeToRefs(useTablesStore())
|
||||
|
||||
const { isUIAllowed } = useRoles()
|
||||
@@ -41,10 +39,6 @@ const { meta: metaKey, control } = useMagicKeys()
|
||||
|
||||
const { refreshCommandPalette } = useCommandPalette()
|
||||
|
||||
const editMode = ref(false)
|
||||
|
||||
const tempTitle = ref('')
|
||||
|
||||
const sourceRenameHelpers = ref<
|
||||
Record<
|
||||
string,
|
||||
@@ -85,18 +79,6 @@ const showBaseOption = (source: SourceType) => {
|
||||
return ['airtableImport', 'csvImport', 'jsonImport', 'excelImport'].some((permission) => isUIAllowed(permission, { source }))
|
||||
}
|
||||
|
||||
const enableEditMode = () => {
|
||||
if (!isUIAllowed('baseRename')) return
|
||||
|
||||
editMode.value = true
|
||||
tempTitle.value = base.value.title!
|
||||
nextTick(() => {
|
||||
input.value?.focus()
|
||||
input.value?.select()
|
||||
// input.value?.scrollIntoView()
|
||||
})
|
||||
}
|
||||
|
||||
const enableEditModeForSource = (sourceId: string) => {
|
||||
if (!isUIAllowed('baseRename')) return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user