Added label to request and History. Fixes #133

This commit is contained in:
liyasthomas
2019-10-07 21:21:48 +05:30
parent c8a480b0e3
commit 249af016a0
4 changed files with 22 additions and 8 deletions

View File

@@ -1,6 +1,5 @@
<template>
<div class="page">
<input @keyup.enter="requestName" id="label" name="label" type="label" v-model="label">
<pw-modal v-if="showModal" @close="showModal = false">
<div slot="header">
<ul>
@@ -135,6 +134,11 @@
</ul>
</div>
</div>
<ul>
<li>
<input id="label" name="label" type="text" v-model="label" placeholder="Label request">
</li>
</ul>
<div class="flex-wrap">
<button class="icon" id="show-modal" @click="showModal = true">
<i class="material-icons">import_export</i>
@@ -420,7 +424,7 @@
},
data() {
return {
label:'Enter request name',
label: '',
showModal: false,
copyButton: '<i class="material-icons">file_copy</i>',
copiedButton: '<i class="material-icons">done</i>',
@@ -683,10 +687,12 @@
},
methods: {
handleUseHistory({
label,
method,
url,
path
}) {
this.label = label;
this.method = method;
this.url = url;
this.path = path;

View File

@@ -81,18 +81,18 @@
themes: [
{
"color": "rgb(37, 38, 40)",
"name": "Dark",
"name": "Kinda Dark",
"class": ""
},
{
"color": "#ffffff",
"name": "Light",
"name": "Clearly White",
"vibrant": true,
"class": "light"
},
{
"color": "#000000",
"name": "Black",
"name": "Just Black",
"class": "black"
},
{