Tweaking patches pane
<div v-if="!selectedAgentPk">No agent selected</div>
<div v-else-if="Object.keys(sortedUpdates).length === 0">No Patches</div>
<div v-else class="q-pa-xs">
- <q-btn label="Refresh" dense flat push @click="refreshUpdates(updates.pk)" icon="refresh" />
+ <q-btn dense flat push @click="refreshUpdates(updates.pk)" icon="refresh" class="q-mr-sm"/>
+ <span v-if="summary.patches_last_installed" class="text-bold">
+ Patches last installed: {{ summary.patches_last_installed }}
+ </span>
+ <span v-else class="text-bold">Patches last installed: Never</span>
<q-table
dense
:table-class="{ 'table-bgcolor': !$q.dark.isActive, 'table-bgcolor-dark': $q.dark.isActive }"
@@ -191,6 +195,9 @@ export default {
},
},
computed: {
+ summary() {
+ return this.$store.state.agentSummary;
+ },
...mapState({
updates: state => Object.freeze(state.winUpdates),
}),
