|
|
@ -77,7 +77,7 @@ const tempTitle = ref('') |
|
|
|
|
|
|
|
|
|
|
|
const activeBaseId = ref('') |
|
|
|
const activeBaseId = ref('') |
|
|
|
|
|
|
|
|
|
|
|
const isErdModalOpen = ref<boolean>(false) |
|
|
|
const isErdModalOpen = ref<Boolean>(false) |
|
|
|
|
|
|
|
|
|
|
|
const { t } = useI18n() |
|
|
|
const { t } = useI18n() |
|
|
|
|
|
|
|
|
|
|
@ -116,7 +116,7 @@ const showBaseOption = computed(() => { |
|
|
|
return ['airtableImport', 'csvImport', 'jsonImport', 'excelImport'].some((permission) => isUIAllowed(permission)) |
|
|
|
return ['airtableImport', 'csvImport', 'jsonImport', 'excelImport'].some((permission) => isUIAllowed(permission)) |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
function enableEditMode() { |
|
|
|
const enableEditMode = () => { |
|
|
|
editMode.value = true |
|
|
|
editMode.value = true |
|
|
|
tempTitle.value = base.value.title! |
|
|
|
tempTitle.value = base.value.title! |
|
|
|
nextTick(() => { |
|
|
|
nextTick(() => { |
|
|
@ -126,7 +126,7 @@ function enableEditMode() { |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
async function updateProjectTitle() { |
|
|
|
const updateProjectTitle = async () => { |
|
|
|
if (!tempTitle.value) return |
|
|
|
if (!tempTitle.value) return |
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
|
try { |
|
|
@ -146,7 +146,7 @@ async function updateProjectTitle() { |
|
|
|
|
|
|
|
|
|
|
|
const { copy } = useCopy(true) |
|
|
|
const { copy } = useCopy(true) |
|
|
|
|
|
|
|
|
|
|
|
async function copyProjectInfo() { |
|
|
|
const copyProjectInfo = async () => { |
|
|
|
try { |
|
|
|
try { |
|
|
|
if ( |
|
|
|
if ( |
|
|
|
await copy( |
|
|
|
await copy( |
|
|
@ -168,7 +168,7 @@ defineExpose({ |
|
|
|
enableEditMode, |
|
|
|
enableEditMode, |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
async function setIcon(icon: string, base: BaseType) { |
|
|
|
const setIcon = async (icon: string, base: BaseType) => { |
|
|
|
try { |
|
|
|
try { |
|
|
|
const meta = { |
|
|
|
const meta = { |
|
|
|
...((base.meta as object) || {}), |
|
|
|
...((base.meta as object) || {}), |
|
|
@ -249,7 +249,7 @@ async function addNewProjectChildEntity() { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
async function onProjectClick(base: NcProject, ignoreNavigation?: boolean, toggleIsExpanded?: boolean) { |
|
|
|
const onProjectClick = async (base: NcProject, ignoreNavigation?: boolean, toggleIsExpanded?: boolean) => { |
|
|
|
if (!base) { |
|
|
|
if (!base) { |
|
|
|
return |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
@ -348,17 +348,17 @@ onKeyStroke('Escape', () => { |
|
|
|
const isDuplicateDlgOpen = ref(false) |
|
|
|
const isDuplicateDlgOpen = ref(false) |
|
|
|
const selectedProjectToDuplicate = ref() |
|
|
|
const selectedProjectToDuplicate = ref() |
|
|
|
|
|
|
|
|
|
|
|
function duplicateProject(base: BaseType) { |
|
|
|
const duplicateProject = (base: BaseType) => { |
|
|
|
selectedProjectToDuplicate.value = base |
|
|
|
selectedProjectToDuplicate.value = base |
|
|
|
isDuplicateDlgOpen.value = true |
|
|
|
isDuplicateDlgOpen.value = true |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function tableDelete() { |
|
|
|
const tableDelete = () => { |
|
|
|
isTableDeleteDialogVisible.value = true |
|
|
|
isTableDeleteDialogVisible.value = true |
|
|
|
$e('c:table:delete') |
|
|
|
$e('c:table:delete') |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function projectDelete() { |
|
|
|
const projectDelete = () => { |
|
|
|
isProjectDeleteDialogVisible.value = true |
|
|
|
isProjectDeleteDialogVisible.value = true |
|
|
|
$e('c:project:delete') |
|
|
|
$e('c:project:delete') |
|
|
|
} |
|
|
|
} |
|
|
|