Make subscription work
This commit is contained in:
@@ -3,7 +3,7 @@ import Api from '@scripts/api';
|
||||
import Lang from '@scripts/lang';
|
||||
import Projects from '@scripts/projects';
|
||||
import User from '@scripts/user';
|
||||
import { createApp } from 'vue';
|
||||
import { createApp, reactive } from 'vue';
|
||||
|
||||
//Main template
|
||||
import Spot from './Spot';
|
||||
@@ -16,7 +16,7 @@ const appConfig = JSON.parse(document.getElementById('app-config').textContent);
|
||||
|
||||
//Instances
|
||||
const oProjects = new Projects(appConfig.projects);
|
||||
const oUser = new User(appConfig.user, appConfig.consts.default_timezone);
|
||||
const oUser = reactive(new User(appConfig.user, appConfig.consts.default_timezone));
|
||||
const oLang = new Lang({translations: appConfig.consts.lang, prefix: appConfig.consts.lang_prefix});
|
||||
const oApi = new Api({
|
||||
server: appConfig.consts.server,
|
||||
|
||||
Reference in New Issue
Block a user