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 } } }) + +