From 6ab754aaca356b1c3e2f70761a9365f68a305c91 Mon Sep 17 00:00:00 2001 From: Hiroki Terashima Date: Mon, 25 Nov 2024 11:43:36 -0800 Subject: [PATCH] feat(AddComponentButton): Update tooltip text if there is no component in the node --- .../add-component-button.component.html | 8 ++-- .../add-component-button.component.ts | 16 ++++---- .../node-authoring.component.html | 7 +++- src/messages.xlf | 39 ++++++++++--------- 4 files changed, 38 insertions(+), 32 deletions(-) diff --git a/src/assets/wise5/authoringTool/node/add-component-button/add-component-button.component.html b/src/assets/wise5/authoringTool/node/add-component-button/add-component-button.component.html index 29c4c635ff2..b932ec3397b 100644 --- a/src/assets/wise5/authoringTool/node/add-component-button/add-component-button.component.html +++ b/src/assets/wise5/authoringTool/node/add-component-button/add-component-button.component.html @@ -4,14 +4,13 @@ color="primary" [matMenuTriggerFor]="componentMenu" #menuTrigger - matTooltip="Add component" + [matTooltip]="tooltipText" matTooltipPosition="above" - i18n-matTooltip > add_circle - @@ -23,8 +22,7 @@