From 0abeb2bfeb9bdfe4a82f78ddc6def2a5e1f987c6 Mon Sep 17 00:00:00 2001 From: Kosta Harlan Date: Wed, 11 May 2022 13:51:52 +0200 Subject: [PATCH] Use watchlist-progressive icon for WatchlistChangePresentationModel Bug: T203941 Change-Id: I8c252c5a48296fd47f0e30462a9771baf7fd7804 --- extension.json | 6 ++++++ includes/formatters/WatchlistChangePresentationModel.php | 3 +-- modules/icons/watchlist-ltr-progressive.svg | 7 +++++++ modules/icons/watchlist-rtl-progressive.svg | 7 +++++++ 4 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 modules/icons/watchlist-ltr-progressive.svg create mode 100644 modules/icons/watchlist-rtl-progressive.svg diff --git a/extension.json b/extension.json index 8a38e75ea..b7eea9a25 100644 --- a/extension.json +++ b/extension.json @@ -704,6 +704,12 @@ }, "EchoNotificationIcons": { "value": { + "watchlist-progressive": { + "path": { + "ltr": "Echo/modules/icons/watchlist-ltr-progressive.svg", + "rtl": "Echo/modules/icons/watchlist-rtl-progressive.svg" + } + }, "placeholder": { "path": "Echo/modules/icons/notice.svg" }, diff --git a/includes/formatters/WatchlistChangePresentationModel.php b/includes/formatters/WatchlistChangePresentationModel.php index 78e08b328..93fe18ce3 100644 --- a/includes/formatters/WatchlistChangePresentationModel.php +++ b/includes/formatters/WatchlistChangePresentationModel.php @@ -3,8 +3,7 @@ class EchoWatchlistChangePresentationModel extends EchoEventPresentationModel { public function getIconType() { - // @todo create an icon to use here - return 'placeholder'; + return 'watchlist-progressive'; } public function getHeaderMessage() { diff --git a/modules/icons/watchlist-ltr-progressive.svg b/modules/icons/watchlist-ltr-progressive.svg new file mode 100644 index 000000000..2c9a3b16c --- /dev/null +++ b/modules/icons/watchlist-ltr-progressive.svg @@ -0,0 +1,7 @@ + + + + watchlist + + + diff --git a/modules/icons/watchlist-rtl-progressive.svg b/modules/icons/watchlist-rtl-progressive.svg new file mode 100644 index 000000000..3091a8a8d --- /dev/null +++ b/modules/icons/watchlist-rtl-progressive.svg @@ -0,0 +1,7 @@ + + + + watchlist + + +