From eac099ad7ae65abe0ee7cbcad6206f9a97a31c0f Mon Sep 17 00:00:00 2001 From: Edwin Betancourt Date: Thu, 22 Jul 2021 22:42:33 -0400 Subject: [PATCH] fix: Tab name style. (#1003) * fix: Tab name style. * fix tooltip text. --- .../ContainerOptions/LockRecord/index.vue | 28 +++++++++++++++++-- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/src/components/ADempiere/ContainerOptions/LockRecord/index.vue b/src/components/ADempiere/ContainerOptions/LockRecord/index.vue index 5a9d6cae..550f207f 100644 --- a/src/components/ADempiere/ContainerOptions/LockRecord/index.vue +++ b/src/components/ADempiere/ContainerOptions/LockRecord/index.vue @@ -20,24 +20,32 @@ - + + + {{ tabName }} + + + + {{ tabName }} + + @@ -80,6 +88,13 @@ export default defineComponent({ return !root.isEmptyValue(recordUuid) && recordUuid !== 'create-new' } + const tooltipText = computed(() => { + if (isLocked.value) { + return root.$t('data.unlockRecord') + } + return root.$t('data.lockRecord') + }) + const lockRecord = () => { const action = isLocked.value ? 'unlockRecord' : 'lockRecord' const { recordId, recordUuid } = getRecordId() @@ -168,9 +183,16 @@ export default defineComponent({ isLocked, // computed isFirstTab, + tooltipText, // methods lockRecord } } }) + +