From 8fe73d7efee1f6714291136a02284fc97e86316c Mon Sep 17 00:00:00 2001 From: jacobshandling <61553566+jacobshandling@users.noreply.github.com> Date: Mon, 11 Nov 2024 10:14:49 -0800 Subject: [PATCH] UI: Dismiss error flash on DUP when changing URL (#23671) ## #23669 ![ezgif-4-55897686f6](https://github.com/user-attachments/assets/20232177-d919-4a67-bfe9-d4c20c375dd3) - [x] Changes file added for user-visible changes in `changes/` - [x] Manual QA for all new/changed functionality --------- Co-authored-by: Jacob Shandling --- changes/23669-dismiss-error-flash-on-url-change-dup | 1 + frontend/pages/hosts/details/DeviceUserPage/DeviceUserPage.tsx | 1 + 2 files changed, 2 insertions(+) create mode 100644 changes/23669-dismiss-error-flash-on-url-change-dup diff --git a/changes/23669-dismiss-error-flash-on-url-change-dup b/changes/23669-dismiss-error-flash-on-url-change-dup new file mode 100644 index 0000000000..125774f81f --- /dev/null +++ b/changes/23669-dismiss-error-flash-on-url-change-dup @@ -0,0 +1 @@ +* Dismiss error flash on the my device page when navigating to another URL. \ No newline at end of file diff --git a/frontend/pages/hosts/details/DeviceUserPage/DeviceUserPage.tsx b/frontend/pages/hosts/details/DeviceUserPage/DeviceUserPage.tsx index 53db103db7..467b40d4cb 100644 --- a/frontend/pages/hosts/details/DeviceUserPage/DeviceUserPage.tsx +++ b/frontend/pages/hosts/details/DeviceUserPage/DeviceUserPage.tsx @@ -485,6 +485,7 @@ const DeviceUserPage = ({ fullWidth notification={notification} onRemoveFlash={hideFlash} + pathname={location.pathname} />