From d8c02404379514c5411afe777540532901ebcfd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakob=20R=C3=B6hrl?= Date: Thu, 1 Oct 2020 11:09:54 +0200 Subject: [PATCH] default due: today MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jakob Röhrl --- lib/Controller/CardController.php | 4 ++-- src/components/Controls.vue | 11 +++++++---- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/lib/Controller/CardController.php b/lib/Controller/CardController.php index dcb3e6046..b61f1da9a 100644 --- a/lib/Controller/CardController.php +++ b/lib/Controller/CardController.php @@ -78,8 +78,8 @@ class CardController extends Controller { * @param int $order * @return \OCP\AppFramework\Db\Entity */ - public function create($title, $stackId, $type = 'plain', $order = 999) { - return $this->cardService->create($title, $stackId, $type, $order, $this->userId); + public function create($title, $stackId, $type = 'plain', $order = 999, $description = '', $duedate = null) { + return $this->cardService->create($title, $stackId, $type, $order, $this->userId, $description, $duedate); } /** diff --git a/src/components/Controls.vue b/src/components/Controls.vue index 9286eaae2..ccf1ad588 100644 --- a/src/components/Controls.vue +++ b/src/components/Controls.vue @@ -34,7 +34,7 @@

{{ overviewName }}

- {{ t('deck', 'Add card') }} + {{ t('deck', 'Add card on Today') }} @@ -199,9 +199,9 @@ - +