|
@@ -38,6 +38,7 @@
|
|
|
@add-request="addRequest"
|
|
|
@edit-collection="editCollection"
|
|
|
@edit-folder="editFolder"
|
|
|
+ @edit-properties="editProperties"
|
|
|
@export-data="exportData"
|
|
|
@remove-collection="removeCollection"
|
|
|
@remove-folder="removeFolder"
|
|
@@ -69,6 +70,7 @@
|
|
|
@add-folder="addFolder"
|
|
|
@edit-collection="editCollection"
|
|
|
@edit-folder="editFolder"
|
|
|
+ @edit-properties="editProperties"
|
|
|
@export-data="exportData"
|
|
|
@remove-collection="removeCollection"
|
|
|
@remove-folder="removeFolder"
|
|
@@ -151,6 +153,10 @@
|
|
|
:show="showTeamModalAdd"
|
|
|
@hide-modal="displayTeamModalAdd(false)"
|
|
|
/>
|
|
|
+ <CollectionsProperties
|
|
|
+ :show="showModalEditProperties"
|
|
|
+ @hide-modal="displayModalEditProperties(false)"
|
|
|
+ />
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -520,6 +526,7 @@ const showModalEditCollection = ref(false)
|
|
|
const showModalEditFolder = ref(false)
|
|
|
const showModalEditRequest = ref(false)
|
|
|
const showModalImportExport = ref(false)
|
|
|
+const showModalEditProperties = ref(false)
|
|
|
const showConfirmModal = ref(false)
|
|
|
const showTeamModalAdd = ref(false)
|
|
|
|
|
@@ -565,6 +572,12 @@ const displayModalImportExport = (show: boolean) => {
|
|
|
if (!show) resetSelectedData()
|
|
|
}
|
|
|
|
|
|
+const displayModalEditProperties = (show: boolean) => {
|
|
|
+ showModalEditProperties.value = show
|
|
|
+
|
|
|
+ if (!show) resetSelectedData()
|
|
|
+}
|
|
|
+
|
|
|
const displayConfirmModal = (show: boolean) => {
|
|
|
showConfirmModal.value = show
|
|
|
|
|
@@ -1893,6 +1906,19 @@ const shareRequest = ({ request }: { request: HoppRESTRequest }) => {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+const editProperties = (payload: {
|
|
|
+ collectionIndex: string
|
|
|
+ collection: HoppCollection<HoppRESTRequest> | TeamCollection
|
|
|
+}) => {
|
|
|
+ const { collection, collectionIndex } = payload
|
|
|
+
|
|
|
+ console.log(collectionIndex, collection)
|
|
|
+
|
|
|
+ editingCollection.value = collection
|
|
|
+
|
|
|
+ displayModalEditProperties(true)
|
|
|
+}
|
|
|
+
|
|
|
const resolveConfirmModal = (title: string | null) => {
|
|
|
if (title === `${t("confirm.remove_collection")}`) onRemoveCollection()
|
|
|
else if (title === `${t("confirm.remove_request")}`) onRemoveRequest()
|