Skip to content

Commit c029448

Browse files
committed
Add current revision indicator to compiled scripts table
1 parent 1e18ef5 commit c029448

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

client/src/vue_components/show/config/script/CompiledScripts.vue

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22
<p v-if="!loading">
33
<b-table id="compiled-script-table" :items="tableData" :fields="tableColumns" show-empty>
44
<template #cell(revision_id)="data">
5-
<span>{{ data.item.revision }}</span>
5+
<span v-if="data.item.revision_id === CURRENT_REVISION"
6+
>{{ data.item.revision }} <b-icon-check-square-fill variant="success"
7+
/></span>
8+
<span v-else>{{ data.item.revision }}</span>
69
</template>
710
<template #cell(btn)="data">
811
<b-button-group v-if="data.item.revision_id !== pendingRevisionId && IS_SCRIPT_EDITOR">
@@ -75,7 +78,7 @@ export default {
7578
});
7679
return data;
7780
},
78-
...mapGetters(['COMPILED_SCRIPTS', 'SCRIPT_REVISIONS', 'IS_SCRIPT_EDITOR']),
81+
...mapGetters(['COMPILED_SCRIPTS', 'SCRIPT_REVISIONS', 'IS_SCRIPT_EDITOR', 'CURRENT_REVISION']),
7982
},
8083
async mounted() {
8184
await this.GET_COMPILED_SCRIPTS();

0 commit comments

Comments
 (0)