diff --git a/packages/hoppscotch-common/src/components/new-collections/rest/Collection.vue b/packages/hoppscotch-common/src/components/new-collections/rest/Collection.vue
index 34e13cf10..8776beeb8 100644
--- a/packages/hoppscotch-common/src/components/new-collections/rest/Collection.vue
+++ b/packages/hoppscotch-common/src/components/new-collections/rest/Collection.vue
@@ -12,6 +12,7 @@
@dragleave="ordering = false"
@dragend="resetDragState"
>
+
+
+
+
+
-
-
- Empty Node!
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ t("collection.import_or_create") }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -267,9 +332,74 @@
{{ node.data.value }}
-
-
- Empty Node!
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ t("collection.import_or_create") }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -284,10 +414,10 @@
@@ -403,28 +548,14 @@ const emit = defineEmits<{
(event: "select", payload: Picked | null): void
}>()
-const workspaceService = useService(NewWorkspaceService)
-const restCollectionState = useReadonlyStream(restCollections$, [])
-
-const currentReorderingStatus = useReadonlyStream(currentReorderingStatus$, {
- type: "collection",
- id: "",
- parentID: "",
-})
-
-const currentUser = useReadonlyStream(
- platform.auth.getCurrentUserStream(),
- platform.auth.getCurrentUser()
-)
-
const draggingToRoot = ref(false)
const searchText = ref("")
const modalLoadingState = ref(false)
-const showModalAdd = ref(false)
+const showModalAddRootCollection = ref(false)
const showModalAddRequest = ref(false)
-const showModalAddChildColl = ref(false)
+const showModalAddChildCollection = ref(false)
const showModalEditRootColl = ref(false)
const showModalEditChildColl = ref(false)
const showModalEditRequest = ref(false)
@@ -535,8 +666,8 @@ const displayModalAddRequest = (show: boolean) => {
if (!show) resetSelectedData()
}
-const displayModalAddChildColl = (show: boolean) => {
- showModalAddChildColl.value = show
+const displayModalAddChildCollection = (show: boolean) => {
+ showModalAddChildCollection.value = show
if (!show) resetSelectedData()
}
@@ -597,7 +728,7 @@ const addNewRootCollection = async (name: string) => {
}
modalLoadingState.value = false
- showModalAdd.value = false
+ showModalAddRootCollection.value = false
}
const removeRootCollection = (collectionIndexPath: string) => {
@@ -745,7 +876,7 @@ const onAddRequest = async (requestName: string) => {
const addChildCollection = (parentCollectionIndexPath: string) => {
editingCollectionIndexPath.value = parentCollectionIndexPath
- displayModalAddChildColl(true)
+ displayModalAddChildCollection(true)
}
const onAddChildCollection = async (newChildCollectionName: string) => {
@@ -783,7 +914,7 @@ const onAddChildCollection = async (newChildCollectionName: string) => {
return
}
- displayModalAddChildColl(false)
+ displayModalAddChildCollection(false)
}
const editRootCollection = (payload: {