diff --git a/pages/index.vue b/pages/index.vue index d4dc0a87a..daa91ba0b 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -406,7 +406,13 @@
- +
  • @@ -708,7 +714,12 @@ - +
    • @@ -829,7 +840,13 @@ - + -
      +
      @@ -1326,7 +1343,7 @@ export default { testsEnabled: true, testScript: "// pw.expect('variable').toBe('value');", preRequestScript: "// pw.env.set('variable', 'value');", - testReports: null, + testReports: [], copyButton: 'content_copy', downloadButton: 'save_alt', doneButton: 'done', @@ -2422,6 +2439,9 @@ export default { }, clearContent(name, { target }) { switch (name) { + case "parameters": + this.params = [] + break case "auth": this.auth = "None" this.httpUser = "" @@ -2431,12 +2451,6 @@ export default { this.tokens = [] this.tokenReqs = [] break - case "headers": - this.headers = [] - break - case "parameters": - this.params = [] - break case "access_token": this.accessTokenName = "" this.oidcDiscoveryUrl = "" @@ -2445,28 +2459,29 @@ export default { this.clientId = "" this.scope = "" break + case "headers": + this.headers = [] + break + case "tests": + this.testReports = [] + break case "tokens": this.tokens = [] break - case "tokenReqs": - this.tokenReqs = [] - case "tests": - this.testReports = null - break default: this.method = "GET" this.url = "https://httpbin.org" this.path = "/get" this.uri = this.url + this.path this.label = "" + this.bodyParams = [] + this.rawParams = "" + this.files = [] + this.params = [] this.auth = "None" this.httpUser = "" this.httpPassword = "" this.bearerToken = "" - this.headers = [] - this.params = [] - this.bodyParams = [] - this.rawParams = "" this.showTokenRequest = false this.tokens = [] this.tokenReqs = [] @@ -2476,7 +2491,8 @@ export default { this.accessTokenUrl = "" this.clientId = "" this.scope = "" - this.files = [] + this.headers = [] + this.testReports = [] } target.innerHTML = this.doneButton this.$toast.info(this.$t("cleared"), {