Remove room creation option(s) if hide_add_room_on_home is set
This commit is contained in:
parent
b5678a04e4
commit
86d5f0c250
6 changed files with 22 additions and 6 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue