frontend: also selectively show filemanager in terminal if localstorage addon exists
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
<Button :disabled="!connected" @click="onDownload" icon="fa-solid fa-download">{{ $t('terminal.downloadAction') }}</Button>
|
||||
|
||||
<Button style="margin-left: 20px;" :title="$t('filemanager.toolbar.restartApp')" secondary :loading="busyRestart" icon="fa-solid fa-arrows-rotate" @click="onRestartApp"/>
|
||||
<Button :href="'/frontend/filemanager.html#/home/app/' + id" target="_blank" secondary icon="fa-solid fa-folder" :title="$t('filemanager.title')" />
|
||||
<Button v-show="showFilemanager" :href="'/frontend/filemanager.html#/home/app/' + id" target="_blank" secondary icon="fa-solid fa-folder" :title="$t('filemanager.title')" />
|
||||
<Button :href="'/frontend/logs.html?appId=' + id" target="_blank" secondary icon="fa-solid fa-align-left" :title="$t('logs.title')" />
|
||||
</template>
|
||||
</TopBar>
|
||||
@@ -80,6 +80,7 @@ export default {
|
||||
busyRestart: false,
|
||||
connected: false,
|
||||
addons: {},
|
||||
showFilemanager: false,
|
||||
schedulerTasks: [],
|
||||
manifestVersion: '',
|
||||
schedulerMenuModel: [],
|
||||
@@ -268,6 +269,7 @@ export default {
|
||||
this.name = `${app.label || app.fqdn} (${app.manifest.title})`;
|
||||
this.addons = app.manifest.addons;
|
||||
this.manifestVersion = app.manifest.manifestVersion;
|
||||
this.showFilemanager = !!app.manifest.addons.localstorage;
|
||||
|
||||
this.schedulerMenuModel = !app.manifest.addons.scheduler ? [] : Object.keys(app.manifest.addons.scheduler).map((k) => {
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user