|
11 | 11 |
|
12 | 12 | use OCA\Libresign\Db\SignRequestMapper; |
13 | 13 | use OCA\Libresign\Service\SignFileService; |
14 | | -use OCA\UserStatus\AppInfo\Application; |
| 14 | +use OCA\Libresign\AppInfo\Application; |
15 | 15 | use OCP\Dashboard\IAPIWidget; |
16 | 16 | use OCP\Dashboard\IAPIWidgetV2; |
17 | 17 | use OCP\Dashboard\IButtonWidget; |
| 18 | +use OCP\Dashboard\IIconWidget; |
18 | 19 | use OCP\Dashboard\Model\WidgetButton; |
19 | 20 | use OCP\Dashboard\Model\WidgetItem; |
20 | 21 | use OCP\Dashboard\Model\WidgetItems; |
|
23 | 24 | use OCP\IUserSession; |
24 | 25 | use OCP\Util; |
25 | 26 |
|
26 | | -class PendingSignaturesWidget implements IAPIWidget, IAPIWidgetV2, IButtonWidget { |
| 27 | +class PendingSignaturesWidget implements IAPIWidget, IAPIWidgetV2, IButtonWidget, IIconWidget { |
27 | 28 | public function __construct( |
28 | 29 | private IL10N $l10n, |
29 | 30 | private IURLGenerator $urlGenerator, |
@@ -81,7 +82,7 @@ public function getUrl(): ?string { |
81 | 82 | * @inheritDoc |
82 | 83 | */ |
83 | 84 | public function load(): void { |
84 | | - //Util::addScript('libresign', 'libresign-dashboard'); |
| 85 | + |
85 | 86 | } |
86 | 87 |
|
87 | 88 | /** |
@@ -117,7 +118,7 @@ public function getItemsV2(string $userId, ?string $since = null, int $limit = 7 |
117 | 118 | $this->getSubtitle($signRequest, $fileEntity), |
118 | 119 | $this->urlGenerator->linkToRouteAbsolute('libresign.page.signFPath', ['uuid' => $signRequest->getUuid(), 'path' => 'pdf']), |
119 | 120 | $this->urlGenerator->getAbsoluteURL( |
120 | | - $this->urlGenerator->imagePath('libresign', 'app-dark.svg') |
| 121 | + $this->urlGenerator->imagePath('core', 'filetypes/application-pdf.svg') |
121 | 122 | ), |
122 | 123 | $this->getTimestamp($fileEntity) |
123 | 124 | ); |
|
0 commit comments