From 73b3ff8e411705dd842abb3088b1a20bc9aa7df5 Mon Sep 17 00:00:00 2001 From: Liyas Thomas Date: Fri, 13 Oct 2023 17:57:14 +0530 Subject: [PATCH] feat: improve import-export UI (#3452) * chore: uniform styles across components * chore: removed absolute wrapper divs * feat: add import button when graphql collections are empty * chore: add icon for button --------- Co-authored-by: nivedin --- .../components/collections/MyCollections.vue | 17 +++-- .../collections/TeamCollections.vue | 71 ++++++++----------- .../components/collections/graphql/index.vue | 33 ++++++--- .../src/components/environments/my/index.vue | 17 +++-- .../components/environments/teams/index.vue | 16 ++--- 5 files changed, 77 insertions(+), 77 deletions(-) diff --git a/packages/hoppscotch-common/src/components/collections/MyCollections.vue b/packages/hoppscotch-common/src/components/collections/MyCollections.vue index 559173d3d4..073d0772c1 100644 --- a/packages/hoppscotch-common/src/components/collections/MyCollections.vue +++ b/packages/hoppscotch-common/src/components/collections/MyCollections.vue @@ -251,12 +251,17 @@ -
+
{{ t("collection.import_or_create") }} -
+
- -
- +
diff --git a/packages/hoppscotch-common/src/components/collections/graphql/index.vue b/packages/hoppscotch-common/src/components/collections/graphql/index.vue index 64d134018d..323224d4ba 100644 --- a/packages/hoppscotch-common/src/components/collections/graphql/index.vue +++ b/packages/hoppscotch-common/src/components/collections/graphql/index.vue @@ -34,7 +34,7 @@ v-if="!saveRequest" v-tippy="{ theme: 'tooltip' }" :title="t('modal.import_export')" - :icon="IconArchive" + :icon="IconImport" @click="displayModalImportExport(true)" /> @@ -66,12 +66,27 @@ :alt="`${t('empty.collections')}`" :text="t('empty.collections')" > - +
+ + {{ t("collection.import_or_create") }} + +
+ + +
+
-
+
{{ t("environment.import_or_create") }} -
+
- -
- +
-
{{ t("environment.import_or_create") }} -
+
- -
- +