refactor: remove unnecessary imports and local state variable
This commit is contained in:
committed by
jamesgeorge007
parent
c43e4fcefd
commit
f4ea999d2d
@@ -224,7 +224,6 @@ const showModalEditProperties = ref(false)
|
|||||||
const showConfirmModal = ref(false)
|
const showConfirmModal = ref(false)
|
||||||
|
|
||||||
const editingCollectionIndexPath = ref<string>("")
|
const editingCollectionIndexPath = ref<string>("")
|
||||||
const editingChildCollectionIndexPath = ref<string>("")
|
|
||||||
const editingRootCollectionName = ref<string>("")
|
const editingRootCollectionName = ref<string>("")
|
||||||
const editingChildCollectionName = ref<string>("")
|
const editingChildCollectionName = ref<string>("")
|
||||||
const editingRequestName = ref<string>("")
|
const editingRequestName = ref<string>("")
|
||||||
@@ -584,14 +583,14 @@ const editChildCollection = (payload: {
|
|||||||
}) => {
|
}) => {
|
||||||
const { collectionIndexPath, collectionName } = payload
|
const { collectionIndexPath, collectionName } = payload
|
||||||
|
|
||||||
editingChildCollectionIndexPath.value = collectionIndexPath
|
editingCollectionIndexPath.value = collectionIndexPath
|
||||||
editingChildCollectionName.value = collectionName
|
editingChildCollectionName.value = collectionName
|
||||||
|
|
||||||
displayModalEditChildCollection(true)
|
displayModalEditChildCollection(true)
|
||||||
}
|
}
|
||||||
|
|
||||||
const onEditChildCollection = async (newChildCollectionName: string) => {
|
const onEditChildCollection = async (newChildCollectionName: string) => {
|
||||||
const collectionIndexPath = editingChildCollectionIndexPath.value
|
const collectionIndexPath = editingCollectionIndexPath.value
|
||||||
|
|
||||||
const collectionHandleResult = await workspaceService.getCollectionHandle(
|
const collectionHandleResult = await workspaceService.getCollectionHandle(
|
||||||
props.workspaceHandle,
|
props.workspaceHandle,
|
||||||
@@ -1131,6 +1130,10 @@ const resolveConfirmModal = (title: string | null) => {
|
|||||||
|
|
||||||
const resetSelectedData = () => {
|
const resetSelectedData = () => {
|
||||||
editingCollectionIndexPath.value = ""
|
editingCollectionIndexPath.value = ""
|
||||||
|
editingRootCollectionName.value = ""
|
||||||
|
editingChildCollectionName.value = ""
|
||||||
|
editingRequestName.value = ""
|
||||||
|
editingRequestIndexPath.value = ""
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -10,9 +10,6 @@ import { TestWorkspaceProviderService } from "./services/new-workspace/providers
|
|||||||
|
|
||||||
import { PersistenceService } from "./services/persistence"
|
import { PersistenceService } from "./services/persistence"
|
||||||
|
|
||||||
import "@fontsource-variable/inter"
|
|
||||||
import "@fontsource-variable/material-symbols-rounded"
|
|
||||||
import "@fontsource-variable/roboto-mono"
|
|
||||||
import "nprogress/nprogress.css"
|
import "nprogress/nprogress.css"
|
||||||
import "../assets/scss/styles.scss"
|
import "../assets/scss/styles.scss"
|
||||||
import "../assets/scss/tailwind.scss"
|
import "../assets/scss/tailwind.scss"
|
||||||
|
|||||||
Reference in New Issue
Block a user