Fix styling and rename to actual dashboard api

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2020-08-20 15:40:38 +02:00
parent 31a9162ff4
commit aa244108c8
14 changed files with 92 additions and 60 deletions

View File

@@ -27,9 +27,19 @@ declare(strict_types=1);
namespace OCA\Deck\Dashboard;
use OCP\Dashboard\IPanel;
use OCP\Dashboard\IWidget;
use OCP\IL10N;
class DeckPanel implements IPanel {
class DeckWidget implements IWidget {
/**
* @var IL10N
*/
private $l10n;
public function __construct(IL10N $l10n) {
$this->l10n = $l10n;
}
/**
* @inheritDoc
@@ -42,7 +52,7 @@ class DeckPanel implements IPanel {
* @inheritDoc
*/
public function getTitle(): string {
return 'Deck';
return $this->l10n->t('Upcoming cards');
}
/**