Create vue models without args
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user