Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/polls.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordartcafe <github@dartcafe.de>2021-03-06 14:18:19 +0300
committerdartcafe <github@dartcafe.de>2021-03-06 14:18:19 +0300
commit7b72fa965a7be4bdd1088b4d9e6ae3a412488a01 (patch)
treeb04b6c03800aff26eb51181c7a43179a33803ff0 /src/js/store/modules/poll.js
parent6ff9eac06a9ae86830c9b58ebea2436ecea25afe (diff)
write poll after change, than after input in description and title
Signed-off-by: dartcafe <github@dartcafe.de>
Diffstat (limited to 'src/js/store/modules/poll.js')
-rw-r--r--src/js/store/modules/poll.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/js/store/modules/poll.js b/src/js/store/modules/poll.js
index 50d04336..0f1d6b77 100644
--- a/src/js/store/modules/poll.js
+++ b/src/js/store/modules/poll.js
@@ -70,6 +70,9 @@ const mutations = {
Object.assign(state, payload)
},
+ setDescriptionSafe(state, payload) {
+ state.descriptionSafe = payload.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;')
+ },
}
const getters = {