From 4a1391f073eb6306e7842abf8fbaccae24d38bea Mon Sep 17 00:00:00 2001 From: mk-pmb Date: Mon, 22 Apr 2024 07:00:56 +0200 Subject: [PATCH] Version history: Show edit button only for latest version. --- src/components/anno-viewer/anno-viewer.html | 7 ++--- src/components/anno-viewer/anno-viewer.js | 31 +++++++++++++++++++++ src/default-config/anno-data.js | 3 ++ 3 files changed, 37 insertions(+), 4 deletions(-) diff --git a/src/components/anno-viewer/anno-viewer.html b/src/components/anno-viewer/anno-viewer.html index 1035a4a..5acfb0d 100644 --- a/src/components/anno-viewer/anno-viewer.html +++ b/src/components/anno-viewer/anno-viewer.html @@ -15,6 +15,7 @@ v-on:mouseover.stop="mouseenter" v-on:mouseleave.stop="mouseleave" :data-w3-anno-id="annoIdUrl" + :data-iana-working-copy="annotation['iana:working-copy']" :data-target-fragment="targetFragment" > @@ -404,10 +405,8 @@
> - {{ l10n(isOwnAnno ? 'edit' : 'edit_as_moderator') }} + v-if="editable" :icon-fa="editable.icon" + >{{ l10n(editable.voc) }}