offline: false,
filter: '',
vlayout: true,
- isDark: null
+ isDark: null,
+ showMenu: false
},
created: async function () {
let that = this;
}
// Look for a new message if an endpoint is provided.
- if (this.config.message.url) {
+ if (this.config.message && this.config.message.url) {
this.getMessage(this.config.message.url).then(function(message){
// keep the original config value if no value is provided by the endpoint
for (const prop of ['title','style','content']) {
this.vlayout = !this.vlayout;
localStorage.vlayout = this.vlayout;
},
+ toggleMenu: function() {
+ this.showMenu = !this.showMenu;
+ }
}
});