From 89e428b4d285f3465a40773fbda564c432fb371e Mon Sep 17 00:00:00 2001 From: Dominik Pschenitschni Date: Mon, 26 Sep 2022 16:09:24 +0000 Subject: [PATCH] feat: ListLabels script setup (#2416) Co-authored-by: Dominik Pschenitschni Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/2416 Reviewed-by: konrad Co-authored-by: Dominik Pschenitschni Co-committed-by: Dominik Pschenitschni --- src/models/label.ts | 2 +- src/views/labels/ListLabels.vue | 146 +++++++++++++++----------------- 2 files changed, 68 insertions(+), 80 deletions(-) diff --git a/src/models/label.ts b/src/models/label.ts index d151260b..798c38dd 100644 --- a/src/models/label.ts +++ b/src/models/label.ts @@ -22,7 +22,7 @@ export default class LabelModel extends AbstractModel implements ILabel created: Date = null updated: Date = null - constructor(data: Partial) { + constructor(data: Partial = {}) { super() this.assignData(data) diff --git a/src/views/labels/ListLabels.vue b/src/views/labels/ListLabels.vue index d578d078..a588edae 100644 --- a/src/views/labels/ListLabels.vue +++ b/src/views/labels/ListLabels.vue @@ -109,90 +109,78 @@ -