🔥 Removing unwanted code

This commit is contained in:
Gopishankar Haridas
2019-10-07 13:21:22 +05:30
parent 0377232e1e
commit ccd96e67b1

View File

@@ -1,6 +1,6 @@
<template> <template>
<div class="page"> <div class="page">
<input :class="{ error: !requestName }" @keyup.enter="requestName ? validRequestName() : null" id="label" name="label" type="label" v-model="label"> <input @keyup.enter="requestName" id="label" name="label" type="label" v-model="label">
<pw-modal v-if="showModal" @close="showModal = false"> <pw-modal v-if="showModal" @close="showModal = false">
<div slot="header"> <div slot="header">
<ul> <ul>
@@ -523,7 +523,7 @@
}, },
computed: { computed: {
requestName() { requestName() {
return this.label.match(/^([^?]*)\??/)[1] return this.label
}, },
statusCategory() { statusCategory() {
return findStatusGroup(this.response.status); return findStatusGroup(this.response.status);
@@ -691,13 +691,6 @@
behavior: 'smooth' behavior: 'smooth'
}); });
}, },
async validRequestName() {
if (!this.requestName) {
this.$toast.error('Request Name is not valid', {
icon: 'error'
});
return;
}},
async sendRequest() { async sendRequest() {
if (!this.isValidURL) { if (!this.isValidURL) {
this.$toast.error('URL is not formatted properly', { this.$toast.error('URL is not formatted properly', {