Remove room creation option(s) if hide_add_room_on_home is set

This commit is contained in:
N-Pex 2023-10-31 09:51:57 +01:00
parent b5678a04e4
commit 86d5f0c250
6 changed files with 22 additions and 6 deletions

View file

@ -1,6 +1,7 @@
export default {
install(Vue, defaultServerFromLocation, onloaded) {
var config = Vue.observable(require('@/assets/config.json'));
Vue.set(config, "loaded", false);
const getRuntimeConfig = () => {
return fetch('./config.json?ms=' + Date.now()).then((res) => res.json()).catch(err => {
console.error("Failed to get config:", err);
@ -17,6 +18,7 @@ export default {
if (!json.defaultServer) {
Vue.set(config, "defaultServer", defaultServerFromLocation);
}
Vue.set(config, "loaded", true);
// Tell callback we are done loading runtime config
if (onloaded) {