From 5efae88304561c44aca4ef42823ee9aba4abcb47 Mon Sep 17 00:00:00 2001 From: Pop John Date: Tue, 22 Oct 2024 12:19:25 +0300 Subject: [PATCH] @if syntax refactorings --- .../component/ms-dialog.component.html | 8 +++-- ...nal-messages-history-dialog.component.html | 14 ++++----- .../component/ms-tooltip-panel.component.html | 31 ++++++++++++++----- 3 files changed, 36 insertions(+), 17 deletions(-) diff --git a/frontend/src/app/modules/core/components/ms-dialog/component/ms-dialog.component.html b/frontend/src/app/modules/core/components/ms-dialog/component/ms-dialog.component.html index 96de0427..d15d277d 100644 --- a/frontend/src/app/modules/core/components/ms-dialog/component/ms-dialog.component.html +++ b/frontend/src/app/modules/core/components/ms-dialog/component/ms-dialog.component.html @@ -16,7 +16,8 @@ -->
-
+ @if (data.showHeader) { +
@@ -29,12 +30,14 @@
+ }
-
+ @if (data.showFooter) { +
@@ -50,4 +53,5 @@
+ }
diff --git a/frontend/src/app/modules/shared/components/ms-terminal/components/ms-terminal-messages-history-dialog/ms-terminal-messages-history-dialog.component.html b/frontend/src/app/modules/shared/components/ms-terminal/components/ms-terminal-messages-history-dialog/ms-terminal-messages-history-dialog.component.html index 1e8e1943..0fd35897 100644 --- a/frontend/src/app/modules/shared/components/ms-terminal/components/ms-terminal-messages-history-dialog/ms-terminal-messages-history-dialog.component.html +++ b/frontend/src/app/modules/shared/components/ms-terminal/components/ms-terminal-messages-history-dialog/ms-terminal-messages-history-dialog.component.html @@ -22,14 +22,12 @@ Search - close - search + + @if (searchFormControl.value) { + close + } @else { + search + }
diff --git a/frontend/src/app/modules/shared/directives/ms-tooltip-panel/component/ms-tooltip-panel.component.html b/frontend/src/app/modules/shared/directives/ms-tooltip-panel/component/ms-tooltip-panel.component.html index 78807d4e..ac972dbd 100644 --- a/frontend/src/app/modules/shared/directives/ms-tooltip-panel/component/ms-tooltip-panel.component.html +++ b/frontend/src/app/modules/shared/directives/ms-tooltip-panel/component/ms-tooltip-panel.component.html @@ -1,17 +1,34 @@ + +
- -
- -
-
- -
+ @if (contentTemplate) { +
+ +
+ } @if (showCloseButton) { +
+ }