diff options
author | Maksim Sukharev <antreesy.web@gmail.com> | 2024-10-16 14:58:41 +0200 |
---|---|---|
committer | Maksim Sukharev <antreesy.web@gmail.com> | 2024-10-17 09:24:23 +0200 |
commit | fca5e23375efcc96a2c044bc13a3833a977039a6 (patch) | |
tree | fd148774de7865797436dd39b1910def70ac962d /apps | |
parent | b37ab132f799b3783d6d80d85f7c899f71be38c0 (diff) | |
download | nextcloud-server-fca5e23375efcc96a2c044bc13a3833a977039a6.tar.gz nextcloud-server-fca5e23375efcc96a2c044bc13a3833a977039a6.zip |
fix: add notification icon for transfer ownership
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files/img/folder-move.svg | 1 | ||||
-rw-r--r-- | apps/files/lib/Notification/Notifier.php | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/apps/files/img/folder-move.svg b/apps/files/img/folder-move.svg new file mode 100644 index 00000000000..349106f4cd9 --- /dev/null +++ b/apps/files/img/folder-move.svg @@ -0,0 +1 @@ +<svg xmlns="http://www.w3.org/2000/svg" id="mdi-folder-move" viewBox="0 0 24 24"><path d="M14,18V15H10V11H14V8L19,13M20,6H12L10,4H4C2.89,4 2,4.89 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V8C22,6.89 21.1,6 20,6Z" /></svg>
\ No newline at end of file diff --git a/apps/files/lib/Notification/Notifier.php b/apps/files/lib/Notification/Notifier.php index 10954ac9c64..caf707cc6e3 100644 --- a/apps/files/lib/Notification/Notifier.php +++ b/apps/files/lib/Notification/Notifier.php @@ -88,6 +88,10 @@ class Notifier implements INotifier, IDismissableNotifier { throw new \InvalidArgumentException('Unhandled app'); } + $imagePath = $this->urlGenerator->imagePath('files', 'folder-move.svg'); + $iconUrl = $this->urlGenerator->getAbsoluteURL($imagePath); + $notification->setIcon($iconUrl); + return match($notification->getSubject()) { 'transferownershipRequest' => $this->handleTransferownershipRequest($notification, $languageCode), 'transferownershipRequestDenied' => $this->handleTransferOwnershipRequestDenied($notification, $languageCode), |