Skip to content

Commit

Permalink
Display template IDs on the list UI and popup editor. Closes knadh#986.
Browse files Browse the repository at this point in the history
  • Loading branch information
knadh committed Oct 22, 2022
1 parent 281c471 commit 372a144
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
7 changes: 6 additions & 1 deletion frontend/src/views/TemplateForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@
class="is-pulled-right" type="is-primary"
icon-left="file-find-outline">{{ $t('templates.preview') }}</b-button>

<h4 v-if="isEditing">{{ data.name }}</h4>
<template v-if="isEditing">
<h4>{{ data.name }}</h4>
<p class="has-text-grey is-size-7">
{{ $t('globals.fields.id') }}: <span data-cy="id">{{ data.id }}</span>
</p>
</template>
<h4 v-else>{{ $t('templates.newTemplate') }}</h4>
</header>
<section expanded class="modal-card-body">
Expand Down
4 changes: 4 additions & 0 deletions frontend/src/views/Templates.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@
</b-tag>
</b-table-column>

<b-table-column v-slot="props" field="id" :label="$t('globals.fields.id')" sortable>
{{ props.row.id }}
</b-table-column>

<b-table-column v-slot="props" field="createdAt"
:label="$t('globals.fields.createdAt')" sortable>
{{ $utils.niceDate(props.row.createdAt) }}
Expand Down

0 comments on commit 372a144

Please sign in to comment.