Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia
TypeScript apiapi-clientapi-restapi-testingdeveloper-toolsgraphqlhttphttp-clientpwarestrest-apispatestingtesting-toolstoolsvuevuejswebsocket
:bug: Populate label to Collection - Fixed #897
Liyas Thomasd986d2e462c8
diff --git a/components/collections/saveRequestAs.vue b/components/collections/saveRequestAs.vueindex 9785a6a16..a1e668e6d 100644--- a/components/collections/saveRequestAs.vue+++ b/components/collections/saveRequestAs.vue@@ -109,6 +109,9 @@ export default {"requestData.folderIndex": function resetRequestIndex() {this.$data.requestData.requestIndex = undefined},+ editingRequest(request) {+ this.defaultRequestName = request.label || "My Request"+ },},computed: {folders() {diff --git a/pages/index.vue b/pages/index.vueindex 8e6750ad9..661d00f3f 100644--- a/pages/index.vue+++ b/pages/index.vue@@ -1565,6 +1565,7 @@ export default {this.testsEnabled = truethis.testScript = newValue.testScript}+ this.label = newValue.label},editingRequest(newValue) {this.editRequest = newValue@@ -2631,6 +2632,7 @@ export default {requestType: this.requestType,preRequestScript: this.showPreRequestScript == true ? this.preRequestScript : null,testScript: this.testsEnabled == true ? this.testScript : null,+ label: this.requestName,}if (this.selectedRequest.url) {this.editRequest = Object.assign({}, this.selectedRequest, this.editRequest)