diff --git a/packages/hoppscotch-app/components/collections/index.vue b/packages/hoppscotch-app/components/collections/index.vue index f1f5f1f80..1ecedf5a3 100644 --- a/packages/hoppscotch-app/components/collections/index.vue +++ b/packages/hoppscotch-app/components/collections/index.vue @@ -80,6 +80,7 @@ :save-request="saveRequest" :collections-type="collectionsType" :picked="picked" + :loading-collection-i-ds="loadingCollectionIDs" @edit-collection="editCollection(collection, index)" @add-folder="addFolder($event)" @edit-folder="editFolder($event)" @@ -95,7 +96,14 @@ />
+ + {{ $t("state.loading") }} +
+
{ this.teamCollectionsNew = cloneDeep(colls) }) + this.subscribeTo( + this.teamCollectionAdapter.loadingCollections$, + (collectionsIDs) => { + console.log("loading collections", collectionsIDs) + this.loadingCollectionIDs = collectionsIDs + } + ) }, methods: { updateTeamCollections() { diff --git a/packages/hoppscotch-app/components/collections/teams/Collection.vue b/packages/hoppscotch-app/components/collections/teams/Collection.vue index e370cd049..c5168434c 100644 --- a/packages/hoppscotch-app/components/collections/teams/Collection.vue +++ b/packages/hoppscotch-app/components/collections/teams/Collection.vue @@ -146,6 +146,7 @@ :collections-type="collectionsType" :is-filtered="isFiltered" :picked="picked" + :loading-collection-i-ds="loadingCollectionIDs" @add-folder="$emit('add-folder', $event)" @edit-folder="$emit('edit-folder', $event)" @edit-request="$emit('edit-request', $event)" @@ -173,7 +174,14 @@ @duplicate-request="$emit('duplicate-request', $event)" />
+ + {{ $t("state.loading") }} +
+
+ + {{ $t("state.loading") }} +
+
{} }, picked: { type: Object, default: () => {} }, + loadingCollectionIDs: { type: Array, default: () => [] }, }, setup() { return { diff --git a/packages/hoppscotch-app/components/teams/Add.vue b/packages/hoppscotch-app/components/teams/Add.vue index 505d528a0..ef5daf13c 100644 --- a/packages/hoppscotch-app/components/teams/Add.vue +++ b/packages/hoppscotch-app/components/teams/Add.vue @@ -19,7 +19,11 @@