Skip to content

Commit

Permalink
Fix dashboard icons
Browse files Browse the repository at this point in the history
Signed-off-by: jld3103 <jld3103yt@gmail.com>
  • Loading branch information
provokateurin committed Oct 3, 2023
1 parent 78ad23d commit 9e10b62
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions lib/AppInfo/DashboardWidget.php
Expand Up @@ -94,14 +94,10 @@ public function getItems(string $userId, ?string $since = null, int $limit = 7):
$link = $this->url->linkToRouteAbsolute('notes.page.indexnote', ['id' => $note->getId()]);
$icon = $this->url->getAbsoluteURL(
$note->getFavorite()
? $this->url->getAbsoluteURL($this->url->imagePath('core', 'actions/starred.svg'))
: $this->getIconUrl()
? $this->url->imagePath('core', 'actions/starred.svg')
: $this->url->imagePath('notes', 'notes-dark.svg')
);
return new WidgetItem($note->getTitle(), $excerpt, $link, $icon, (string)$note->getModified());
}, $notes);
}

public function getIconUrl(): string {
return $this->url->getAbsoluteURL($this->url->imagePath('notes', 'notes-dark.svg'));
}
}

0 comments on commit 9e10b62

Please sign in to comment.