Skip to content

Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍

Feature/improve usability of create watchlist item dialog (#5661)

Mariam Saeed4e2a1b8de5fb
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 717a369531..6d0a3c3c01 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
+## Unreleased
+
+### Changed
+
+- Improved the usability of the _Cancel_ / _Close_ buttons in the create watchlist item dialog
+
## 2.205.0 - 2025-10-01
### Changed
diff --git a/apps/client/src/app/components/home-watchlist/create-watchlist-item-dialog/create-watchlist-item-dialog.html b/apps/client/src/app/components/home-watchlist/create-watchlist-item-dialog/create-watchlist-item-dialog.html
index dd59a93096..92e1948917 100644
--- a/apps/client/src/app/components/home-watchlist/create-watchlist-item-dialog/create-watchlist-item-dialog.html
+++ b/apps/client/src/app/components/home-watchlist/create-watchlist-item-dialog/create-watchlist-item-dialog.html
@@ -12,7 +12,13 @@
</mat-form-field>
</div>
<div class="d-flex justify-content-end" mat-dialog-actions>
- <button i18n mat-button type="button" (click)="onCancel()">Cancel</button>
+ <button mat-button type="button" (click)="onCancel()">
+ @if (createWatchlistItemForm.dirty) {
+ <ng-container i18n>Cancel</ng-container>
+ } @else {
+ <ng-container i18n>Close</ng-container>
+ }
+ </button>
<button
color="primary"
mat-flat-button