Skip to content

Commit ba17304

Browse files
chore: add icon libresign and pdf
Signed-off-by: samuelsonmesquita <[email protected]>
1 parent e3b9eea commit ba17304

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

lib/Dashboard/PendingSignaturesWidget.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,11 @@
1111

1212
use OCA\Libresign\Db\SignRequestMapper;
1313
use OCA\Libresign\Service\SignFileService;
14-
use OCA\UserStatus\AppInfo\Application;
14+
use OCA\Libresign\AppInfo\Application;
1515
use OCP\Dashboard\IAPIWidget;
1616
use OCP\Dashboard\IAPIWidgetV2;
1717
use OCP\Dashboard\IButtonWidget;
18+
use OCP\Dashboard\IIconWidget;
1819
use OCP\Dashboard\Model\WidgetButton;
1920
use OCP\Dashboard\Model\WidgetItem;
2021
use OCP\Dashboard\Model\WidgetItems;
@@ -23,7 +24,7 @@
2324
use OCP\IUserSession;
2425
use OCP\Util;
2526

26-
class PendingSignaturesWidget implements IAPIWidget, IAPIWidgetV2, IButtonWidget {
27+
class PendingSignaturesWidget implements IAPIWidget, IAPIWidgetV2, IButtonWidget, IIconWidget {
2728
public function __construct(
2829
private IL10N $l10n,
2930
private IURLGenerator $urlGenerator,
@@ -81,7 +82,7 @@ public function getUrl(): ?string {
8182
* @inheritDoc
8283
*/
8384
public function load(): void {
84-
//Util::addScript('libresign', 'libresign-dashboard');
85+
8586
}
8687

8788
/**
@@ -117,7 +118,7 @@ public function getItemsV2(string $userId, ?string $since = null, int $limit = 7
117118
$this->getSubtitle($signRequest, $fileEntity),
118119
$this->urlGenerator->linkToRouteAbsolute('libresign.page.signFPath', ['uuid' => $signRequest->getUuid(), 'path' => 'pdf']),
119120
$this->urlGenerator->getAbsoluteURL(
120-
$this->urlGenerator->imagePath('libresign', 'app-dark.svg')
121+
$this->urlGenerator->imagePath('core', 'filetypes/application-pdf.svg')
121122
),
122123
$this->getTimestamp($fileEntity)
123124
);

0 commit comments

Comments
 (0)