From 2788dfd6100337af5cb30faeb8651f12c93b6e50 Mon Sep 17 00:00:00 2001 From: "Grigorii K. Shartsev" Date: Thu, 11 Jan 2024 11:40:36 +0100 Subject: [PATCH 1/2] fix: migrate from v-tooltip to native title in ActionSingle - Remove usage of already deleted directive v-tooltip - Fixed native title text to be the same as was used in tooltip to show shortcuts on desktop Signed-off-by: Grigorii K. Shartsev --- src/components/Menu/ActionSingle.vue | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/components/Menu/ActionSingle.vue b/src/components/Menu/ActionSingle.vue index b3da4d0afe4..f3b49393576 100644 --- a/src/components/Menu/ActionSingle.vue +++ b/src/components/Menu/ActionSingle.vue @@ -104,18 +104,10 @@ export default { const { class: classes, ...attrs } = bindState - // do not use tooltip if is a item of action list - const directives = isItem - ? [] - : [{ - name: 'tooltip', - value: tooltip, - }] - const children = [h(icon, { slot: 'icon' })] // do not use title if is a item of action list - const title = isItem ? undefined : label + const title = isItem ? undefined : tooltip if (isItem || actionEntry.forceLabel) { // add label @@ -123,7 +115,6 @@ export default { } return h(component, { - directives, staticClass: 'entry-single-action entry-action', class: classes, attrs: { From ffd8e44a3eb2154cddb29ee37d12024416ae8777 Mon Sep 17 00:00:00 2001 From: "Grigorii K. Shartsev" Date: Thu, 11 Jan 2024 11:44:57 +0100 Subject: [PATCH 2/2] fix: remove duplicating `t` method registration It is already added to prototype. Having properties (e.g. computed) for this method in instances throws exception: > The computed property "t" is already defined as a method. Signed-off-by: Grigorii K. Shartsev --- src/components/Suggestion/SuggestionListWrapper.vue | 2 ++ src/nodes/Table/TableCellView.vue | 1 - src/nodes/Table/TableHeaderView.vue | 1 - src/nodes/Table/TableView.vue | 3 --- 4 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/components/Suggestion/SuggestionListWrapper.vue b/src/components/Suggestion/SuggestionListWrapper.vue index 288e5728722..cd81b3e11ab 100644 --- a/src/components/Suggestion/SuggestionListWrapper.vue +++ b/src/components/Suggestion/SuggestionListWrapper.vue @@ -42,6 +42,8 @@