Skip to content

Commit 67205cd

Browse files
chore: ajustment url
Signed-off-by: samuelsonmesquita <[email protected]>
1 parent e9e0bd7 commit 67205cd

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

lib/Dashboard/PendingSignaturesWidget.php

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@
99

1010
namespace OCA\Libresign\Dashboard;
1111

12+
use OCA\UserStatus\AppInfo\Application;
1213
use OCA\Libresign\Db\SignRequestMapper;
1314
use OCA\Libresign\Service\SignFileService;
15+
use OCP\Dashboard\IAPIWidget;
1416
use OCP\Dashboard\IAPIWidgetV2;
1517
use OCP\Dashboard\IButtonWidget;
1618
use OCP\Dashboard\Model\WidgetButton;
@@ -21,7 +23,7 @@
2123
use OCP\IUserSession;
2224
use OCP\Util;
2325

24-
class PendingSignaturesWidget implements IAPIWidgetV2, IButtonWidget {
26+
class PendingSignaturesWidget implements IAPIWidget, IAPIWidgetV2, IButtonWidget {
2527
public function __construct(
2628
private IL10N $l10n,
2729
private IURLGenerator $urlGenerator,
@@ -56,7 +58,16 @@ public function getOrder(): int {
5658
* @inheritDoc
5759
*/
5860
public function getIconClass(): string {
59-
return 'icon-libresign-dark';
61+
return 'icon-libresign';
62+
}
63+
64+
/**
65+
* @inheritDoc
66+
*/
67+
public function getIconUrl(): string {
68+
return $this->urlGenerator->getAbsoluteURL(
69+
$this->urlGenerator->imagePath(Application::APP_ID, 'app-dark.svg')
70+
);
6071
}
6172

6273
/**
@@ -104,7 +115,7 @@ public function getItemsV2(string $userId, ?string $since = null, int $limit = 7
104115
$item = new WidgetItem(
105116
$this->getDocumentTitle($fileEntity),
106117
$this->getSubtitle($signRequest, $fileEntity),
107-
$this->urlGenerator->linkToRouteAbsolute('libresign.page.sign', ['uuid' => $signRequest->getUuid()]),
118+
$this->urlGenerator->linkToRouteAbsolute('libresign.page.signFPath', ['uuid' => $signRequest->getUuid(), 'path' => 'pdf']),
108119
$this->urlGenerator->getAbsoluteURL(
109120
$this->urlGenerator->imagePath('libresign', 'app-dark.svg')
110121
),

0 commit comments

Comments
 (0)