From 075d723fda3577b5c98deef419324fd5a101fc59 Mon Sep 17 00:00:00 2001 From: Nicolas Bonnel Date: Mon, 8 Jan 2018 14:50:15 +0100 Subject: [PATCH] fix: http verb color display --- src/OpenApi.vue | 33 +++++++++++++++++++-------------- 1 file changed, 19 insertions(+), 14 deletions(-) diff --git a/src/OpenApi.vue b/src/OpenApi.vue index cd8b783..7ef7488 100644 --- a/src/OpenApi.vue +++ b/src/OpenApi.vue @@ -134,20 +134,6 @@ import SchemaView from './SchemaView.vue' import VueMaterial from 'vue-material' Vue.use(VueMaterial) -Vue.material.registerTheme({ - get: { - primary: 'blue' - }, - post: { - primary: 'green' - }, - put: { - primary: 'orange' - }, - delete: { - primary: 'red' - } -}) export default { name: 'open-api', @@ -171,6 +157,25 @@ export default { mounted: function() { this.$refs.menu.$children[0].toggleExpandList() }, + created(){ + Vue.material.registerTheme({ + get: { + primary: 'blue' + }, + post: { + primary: 'green' + }, + put: { + primary: 'orange' + }, + patch: { + primary: 'orange' + }, + delete: { + primary: 'red' + } + }) + }, computed: { tags: function() { return getTag(this.api)