chore(nc-gui): lint

This commit is contained in:
Ramesh Mane
2025-05-17 06:32:02 +00:00
parent 3a4d96e5e5
commit af2e989e62

View File

@@ -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