aboutsummaryrefslogtreecommitdiffstats
path: root/apps/workflowengine/src/mixins
diff options
context:
space:
mode:
Diffstat (limited to 'apps/workflowengine/src/mixins')
-rw-r--r--apps/workflowengine/src/mixins/valueMixin.js45
1 files changed, 7 insertions, 38 deletions
diff --git a/apps/workflowengine/src/mixins/valueMixin.js b/apps/workflowengine/src/mixins/valueMixin.js
index 39b9f9c3c81..1293cd2483c 100644
--- a/apps/workflowengine/src/mixins/valueMixin.js
+++ b/apps/workflowengine/src/mixins/valueMixin.js
@@ -1,53 +1,22 @@
/**
- * @copyright Copyright (c) 2019 Julius Härtl <jus@bitgrid.net>
- *
- * @author John Molakvoæ <skjnldsv@protonmail.com>
- * @author Julius Härtl <jus@bitgrid.net>
- *
- * @license AGPL-3.0-or-later
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
+ * SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-License-Identifier: AGPL-3.0-or-later
*/
const valueMixin = {
- props: {
- value: {
- type: String,
- default: '',
- },
- check: {
- type: Object,
- default: () => { return {} },
- },
- },
data() {
return {
- newValue: '',
+ newValue: [],
}
},
watch: {
- value: {
- immediate: true,
- handler(value) {
- this.updateInternalValue(value)
- },
+ modelValue() {
+ this.updateInternalValue()
},
},
methods: {
- updateInternalValue(value) {
- this.newValue = value
+ updateInternalValue() {
+ this.newValue = this.modelValue
},
},
}