Create vue models without args

This commit is contained in:
Johannes Zellner
2025-01-31 21:02:48 +01:00
parent dfba9d3650
commit 71e9caef9c
52 changed files with 150 additions and 151 deletions

View File

@@ -1,12 +1,9 @@
<script>
import { Button, InputDialog, TopBar, MainLayout } from 'pankow';
import LogsModel from '../models/LogsModel.js';
import AppsModel from '../models/AppsModel.js';
const API_ORIGIN = import.meta.env.VITE_API_ORIGIN ? import.meta.env.VITE_API_ORIGIN : window.location.origin;
export default {
name: 'LogsViewer',
components: {
@@ -96,10 +93,10 @@ export default {
return;
}
this.logsModel = LogsModel.create(API_ORIGIN, this.accessToken, this.type, this.id);
this.logsModel = LogsModel.create(this.type, this.id);
if (this.type === 'app') {
this.appsModel = AppsModel.create(API_ORIGIN, this.accessToken, this.id);
this.appsModel = AppsModel.create();
try {
const app = await this.appsModel.get();