Add applink dialog in apps view

This commit is contained in:
Johannes Zellner
2025-01-03 15:06:41 +01:00
parent 56739945fa
commit 27fac748cd
7 changed files with 399 additions and 10 deletions
+8
View File
@@ -15,6 +15,10 @@ import AppsView from './AppsView.vue';
import SupportView from './SupportView.vue';
import VolumesView from './VolumesView.vue';
import ProfileModel from '../models/ProfileModel.js';
const API_ORIGIN = import.meta.env.VITE_API_ORIGIN ? import.meta.env.VITE_API_ORIGIN : window.location.origin;
const VIEWS = {
APPS: 'apps',
SUPPORT: 'support',
@@ -33,6 +37,7 @@ export default {
return {
VIEWS,
accessToken: localStorage.token,
profile: {},
view: ''
};
},
@@ -44,6 +49,9 @@ export default {
return;
}
const profileModel = ProfileModel.create(API_ORIGIN, localStorage.token);
this.profile = await profileModel.get();
const that = this;
function onHashChange() {
const view = location.hash.slice(2);