Skip to content

Commit

Permalink
fix: http verb color display
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-bonnel committed Jan 8, 2018
1 parent a638977 commit 075d723
Showing 1 changed file with 19 additions and 14 deletions.
33 changes: 19 additions & 14 deletions src/OpenApi.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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)
Expand Down

0 comments on commit 075d723

Please sign in to comment.