refactoring of SideMenuBig.vue
This commit is contained in:
parent
a5ca86f573
commit
2a67038ff4
|
@ -81,17 +81,13 @@ export default {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
retrieveApps() {
|
retrieveApps() {
|
||||||
this.apps = []
|
|
||||||
let that = this
|
|
||||||
|
|
||||||
axios
|
axios
|
||||||
.get(OC.generateUrl('/apps/side_menu/nav/items'))
|
.get(OC.generateUrl('/apps/side_menu/nav/items'))
|
||||||
.then(function(response) {
|
.then((response) => {
|
||||||
that.items = response.data.items
|
this.items = response.data.items
|
||||||
|
|
||||||
let apps = []
|
let apps = []
|
||||||
|
|
||||||
for (let category of that.items) {
|
for (let category of this.items) {
|
||||||
for (let a in category.apps) {
|
for (let a in category.apps) {
|
||||||
apps.push(category.apps[a])
|
apps.push(category.apps[a])
|
||||||
}
|
}
|
||||||
|
@ -109,15 +105,13 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
retrieveConfig() {
|
retrieveConfig() {
|
||||||
let that = this
|
|
||||||
|
|
||||||
axios
|
axios
|
||||||
.get(OC.generateUrl('/apps/side_menu/js/config'))
|
.get(OC.generateUrl('/apps/side_menu/js/config'))
|
||||||
.then(function(response) {
|
.then((response) => {
|
||||||
const config = response.data
|
const config = response.data
|
||||||
|
|
||||||
that.targetBlankApps = config['target-blank-apps']
|
this.targetBlankApps = config['target-blank-apps']
|
||||||
that.settings = config['settings']
|
this.settings = config['settings']
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue