diff --git a/src/components/tasks/partials/editLabels.vue b/src/components/tasks/partials/editLabels.vue index 25ee20b63..3ba78de75 100644 --- a/src/components/tasks/partials/editLabels.vue +++ b/src/components/tasks/partials/editLabels.vue @@ -148,3 +148,9 @@ export default { }, } + + diff --git a/src/store/modules/tasks.js b/src/store/modules/tasks.js index 8adf09bbb..70e5370ca 100644 --- a/src/store/modules/tasks.js +++ b/src/store/modules/tasks.js @@ -223,13 +223,12 @@ export default { const labelAddsToWaitFor = parsedLabels.map(async labelTitle => { let label = validateLabel(labels, labelTitle) - if (typeof label !== 'undefined') { - return label + if (typeof label === 'undefined') { + // label not found, create it + const labelModel = new LabelModel({title: labelTitle}) + label = await dispatch('labels/createLabel', labelModel, {root: true}) } - // label not found, create it - const labelModel = new LabelModel({title: labelTitle}) - await dispatch('labels/createLabel', labelModel, {root: true}) return addLabelToTask(task, label) }) diff --git a/src/styles/theme/notification.scss b/src/styles/theme/notification.scss index aaf83968c..9950b9606 100644 --- a/src/styles/theme/notification.scss +++ b/src/styles/theme/notification.scss @@ -5,14 +5,6 @@ .notifications { left: 0.5rem !important; bottom: 1rem !important; - - .notification-wrapper .notification { - border-radius: 0; - border-top-width: 0; - border-right-width: 0; - border-bottom-width: 0; - border-left-width: 0.4rem; - } } .message .message-body {