Show app upstream version in info page
This commit is contained in:
@@ -12,6 +12,7 @@ const props = defineProps([ 'app' ]);
|
||||
const emit = defineEmits([ 'changed' ]);
|
||||
|
||||
const id = ref('');
|
||||
const upstreamVersion = ref('');
|
||||
const notesTextarea = useTemplateRef('notesTextarea');
|
||||
const showDoneChecklist = ref(false);
|
||||
const hasOldChecklist = ref(false);
|
||||
@@ -67,6 +68,7 @@ onMounted(() => {
|
||||
const app = props.app;
|
||||
manifest.value = app.manifest || {};
|
||||
id.value = app.id;
|
||||
upstreamVersion.value = manifest.value.version || '';
|
||||
checklist.value = app.checklist;
|
||||
hasOldChecklist.value = !!Object.keys(app.checklist).find((k) => { return app.checklist[k].acknowledged; });
|
||||
noteContent.value = app.notes === null ? app.manifest.postInstallMessage : app.notes;
|
||||
@@ -81,7 +83,7 @@ onMounted(() => {
|
||||
|
||||
<div class="info-row">
|
||||
<div class="info-label">{{ $t('app.updates.info.description') }}</div>
|
||||
<div class="info-value" v-if="app.appStoreId">{{ manifest.title }} {{ app.upstreamVersion }}</div>
|
||||
<div class="info-value" v-if="app.appStoreId">{{ manifest.title }} {{ upstreamVersion }}</div>
|
||||
<div class="info-value" v-else>{{ manifest.dockerImage }}</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user