mirror of
https://github.com/nextcloud/server.git
synced 2026-02-18 18:28:50 -05:00
fix: add notification icon for transfer ownership
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
This commit is contained in:
parent
6e7c35d77e
commit
73b34bba7b
3 changed files with 6 additions and 1 deletions
File diff suppressed because one or more lines are too long
1
apps/files/img/folder-move.svg
Normal file
1
apps/files/img/folder-move.svg
Normal file
|
|
@ -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>
|
||||
|
After Width: | Height: | Size: 219 B |
|
|
@ -76,6 +76,10 @@ class Notifier implements INotifier, IDismissableNotifier {
|
|||
throw new UnknownNotificationException('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),
|
||||
|
|
|
|||
Loading…
Reference in a new issue