From 08a34d8a68d6b525b57dc38cf4b7b82571bfb501 Mon Sep 17 00:00:00 2001
From: kolaente
Date: Wed, 18 Aug 2021 22:57:11 +0200
Subject: [PATCH] Make saving a text edit a button
---
src/components/input/editor.vue | 19 ++++++++++++++++---
src/components/tasks/partials/comments.vue | 1 +
2 files changed, 17 insertions(+), 3 deletions(-)
diff --git a/src/components/input/editor.vue b/src/components/input/editor.vue
index fe03f380..0208ec12 100644
--- a/src/components/input/editor.vue
+++ b/src/components/input/editor.vue
@@ -20,17 +20,27 @@
-
-
+
+
+
+
+ {{ $t('misc.save') }}
+
+
@@ -85,6 +95,9 @@ export default {
type: String,
default: () => '',
},
+ showSave: {
+ default: true,
+ },
},
computed: {
showPreviewText() {
diff --git a/src/components/tasks/partials/comments.vue b/src/components/tasks/partials/comments.vue
index 7576f8ac..03d09c85 100644
--- a/src/components/tasks/partials/comments.vue
+++ b/src/components/tasks/partials/comments.vue
@@ -113,6 +113,7 @@
:upload-callback="attachmentUpload"
:upload-enabled="true"
:placeholder="$t('task.comment.placeholder')"
+ :show-save="false"
v-if="editorActive"
v-model="newComment.comment"
/>