Add repair app configure view

This commit is contained in:
Johannes Zellner
2025-02-22 18:31:21 +01:00
parent 3e2177b402
commit c593b4180a
5 changed files with 105 additions and 21 deletions

View File

@@ -49,7 +49,8 @@ export default {
this.busyRestart = true;
await this.appsModel.restart();
const [error] = await this.appsModel.restart(this.id);
if (error) return console.error(error);
this.busyRestart = false;
}
@@ -98,15 +99,13 @@ export default {
if (this.type === 'app') {
this.appsModel = AppsModel.create();
try {
const app = await this.appsModel.get();
this.name = `${app.label || app.fqdn} (${app.manifest.title})`;
this.showFilemanager = !!app.manifest.addons.localstorage;
this.showTerminal = app.manifest.id !== 'io.cloudron.builtin.appproxy';
this.showRestart = app.manifest.id !== 'io.cloudron.builtin.appproxy';
} catch (e) {
console.error(`Failed to get app info for ${this.id}:`, e);
}
const [error, app] = await this.appsModel.get(this.id);
if (error) return console.error(error);
this.name = `${app.label || app.fqdn} (${app.manifest.title})`;
this.showFilemanager = !!app.manifest.addons.localstorage;
this.showTerminal = app.manifest.id !== 'io.cloudron.builtin.appproxy';
this.showRestart = app.manifest.id !== 'io.cloudron.builtin.appproxy';
}
window.document.title = `Logs Viewer - ${this.name}`;