Initial collections

This commit is contained in:
Keith Holliday
2019-10-01 16:20:23 -06:00
parent 0afd0205ed
commit e5b72c7072
8 changed files with 425 additions and 3 deletions

View File

@@ -340,6 +340,7 @@
</div>
</section>
<history @useHistory="handleUseHistory" ref="historyComponent"></history>
<collections></collections>
</div>
</template>
<script>
@@ -351,6 +352,7 @@
import textareaAutoHeight from "../directives/textareaAutoHeight";
import toggle from "../components/toggle";
import modal from "../components/modal";
import collections from '../components/collections';
import parseCurlCommand from '../assets/js/curlparser.js';
import hljs from 'highlight.js';
import 'highlight.js/styles/dracula.css';
@@ -413,6 +415,7 @@
'pw-modal': modal,
history,
autocomplete,
collections,
},
data() {
return {
@@ -517,9 +520,16 @@
this.path = path;
},
deep: true
}
},
selectedRequest (newValue, oldValue) {
if (!newValue) return;
this.url = newValue.url;
},
},
computed: {
selectedRequest() {
return this.$store.state.postwoman.selectedRequest;
},
statusCategory() {
return findStatusGroup(this.response.status);
},
@@ -1058,7 +1068,7 @@
this.$toast.info('Cleared', {
icon: 'clear_all'
});
}
},
},
mounted() {
this.observeRequestButton();