refactoring of SideMenuBig.vue

This commit is contained in:
Simon Vieille 2022-10-18 22:22:26 +02:00
parent a5ca86f573
commit 2a67038ff4
Signed by: deblan
GPG key ID: 579388D585F70417

View file

@ -81,17 +81,13 @@ export default {
},
methods: {
retrieveApps() {
this.apps = []
let that = this
axios
.get(OC.generateUrl('/apps/side_menu/nav/items'))
.then(function(response) {
that.items = response.data.items
.then((response) => {
this.items = response.data.items
let apps = []
for (let category of that.items) {
for (let category of this.items) {
for (let a in category.apps) {
apps.push(category.apps[a])
}
@ -109,15 +105,13 @@ export default {
},
retrieveConfig() {
let that = this
axios
.get(OC.generateUrl('/apps/side_menu/js/config'))
.then(function(response) {
.then((response) => {
const config = response.data
that.targetBlankApps = config['target-blank-apps']
that.settings = config['settings']
this.targetBlankApps = config['target-blank-apps']
this.settings = config['settings']
})
},
},