mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-25 16:44:28 +00:00
refactor fhcApi
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
import CisMenuEntry from "./Menu/Entry.js";
|
||||
import FhcSearchbar from "../searchbar/searchbar.js";
|
||||
import CisSprachen from "./Sprachen.js"
|
||||
import CisSprachen from "./Sprachen.js";
|
||||
|
||||
import ApiCisMenu from '../../api/factory/cis/menu.js';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
@@ -50,12 +52,13 @@ export default {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
fetchMenu: function(){
|
||||
return this.$fhcApi.factory.menu.getMenu()
|
||||
.then(res => res.data)
|
||||
.then(menu => {
|
||||
this.entries = menu;
|
||||
})
|
||||
fetchMenu() {
|
||||
return this.$api
|
||||
.call(ApiCisMenu.getMenu())
|
||||
.then(res => res.data)
|
||||
.then(menu => {
|
||||
this.entries = menu;
|
||||
});
|
||||
},
|
||||
checkSettingsVisibility: function (event) {
|
||||
// hides the settings collapsible if the user clicks somewhere else
|
||||
|
||||
Reference in New Issue
Block a user