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

github.com/nextcloud/tasks.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRaimund Schlüßler <raimund.schluessler@mailbox.org>2022-09-19 16:51:34 +0300
committerRaimund Schlüßler <raimund.schluessler@mailbox.org>2022-09-19 16:51:34 +0300
commit9683e331cee01779ed8cdbb37ac1654714179af7 (patch)
treea7c2010424f89e0b4ab147d06b2d0525807257b4 /src
parentf1c6621262cc1543c1b9676277b5e9b9faf675c7 (diff)
Add emits property to emitting components
Signed-off-by: Raimund Schlüßler <raimund.schluessler@mailbox.org>
Diffstat (limited to 'src')
-rw-r--r--src/components/AppNavigation/Colorpicker.vue1
-rw-r--r--src/components/AppSidebar/CalendarPickerItem.vue1
-rw-r--r--src/components/AppSidebar/CheckboxItem.vue1
-rw-r--r--src/components/AppSidebar/MultiselectItem.vue1
-rw-r--r--src/components/AppSidebar/TagsItem.vue4
-rw-r--r--src/components/TaskCheckbox.vue1
-rw-r--r--src/components/TaskCreateDialog.vue3
-rw-r--r--src/components/TaskStatusDisplay.vue4
8 files changed, 15 insertions, 1 deletions
diff --git a/src/components/AppNavigation/Colorpicker.vue b/src/components/AppNavigation/Colorpicker.vue
index 3ba8847c..14d6dbcb 100644
--- a/src/components/AppNavigation/Colorpicker.vue
+++ b/src/components/AppNavigation/Colorpicker.vue
@@ -59,6 +59,7 @@ export default {
default: '#31CC7C',
},
},
+ emits: ['color-selected'],
data() {
return {
random: '#31CC7C',
diff --git a/src/components/AppSidebar/CalendarPickerItem.vue b/src/components/AppSidebar/CalendarPickerItem.vue
index fb5766ce..711c328d 100644
--- a/src/components/AppSidebar/CalendarPickerItem.vue
+++ b/src/components/AppSidebar/CalendarPickerItem.vue
@@ -72,6 +72,7 @@ export default {
required: false,
},
},
+ emits: ['change-calendar'],
computed: {
isDisabled() {
return this.calendars.length < 2 || this.disabled
diff --git a/src/components/AppSidebar/CheckboxItem.vue b/src/components/AppSidebar/CheckboxItem.vue
index 58cfaa2a..7525f0fb 100644
--- a/src/components/AppSidebar/CheckboxItem.vue
+++ b/src/components/AppSidebar/CheckboxItem.vue
@@ -56,6 +56,7 @@ export default {
default: '',
},
},
+ emits: ['set-checked'],
}
</script>
diff --git a/src/components/AppSidebar/MultiselectItem.vue b/src/components/AppSidebar/MultiselectItem.vue
index a21f17f5..35847876 100644
--- a/src/components/AppSidebar/MultiselectItem.vue
+++ b/src/components/AppSidebar/MultiselectItem.vue
@@ -82,6 +82,7 @@ export default {
default: null,
},
},
+ emits: ['change-value'],
computed: {
isDisabled() {
return this.options.length < 2 || this.disabled
diff --git a/src/components/AppSidebar/TagsItem.vue b/src/components/AppSidebar/TagsItem.vue
index 5b054297..18251fa9 100644
--- a/src/components/AppSidebar/TagsItem.vue
+++ b/src/components/AppSidebar/TagsItem.vue
@@ -85,6 +85,10 @@ export default {
default: null,
},
},
+ emits: [
+ 'add-tag',
+ 'set-tags',
+ ],
methods: {
t,
diff --git a/src/components/TaskCheckbox.vue b/src/components/TaskCheckbox.vue
index 7a14cbc8..7d86a9c6 100644
--- a/src/components/TaskCheckbox.vue
+++ b/src/components/TaskCheckbox.vue
@@ -71,6 +71,7 @@ export default {
default: '',
},
},
+ emits: ['toggle-completed'],
computed: {
ariaLabel() {
if (this.cancelled && !this.completed) {
diff --git a/src/components/TaskCreateDialog.vue b/src/components/TaskCreateDialog.vue
index 55234e3f..5c22c0d7 100644
--- a/src/components/TaskCreateDialog.vue
+++ b/src/components/TaskCreateDialog.vue
@@ -128,6 +128,7 @@ export default {
default: '',
},
},
+ emits: ['close'],
data() {
return {
pendingTitle: '',
@@ -270,6 +271,6 @@ export default {
:deep(.calendar-picker-option__label),
:deep(.property__item .multiselect__tags) input.multiselect__input {
- font-weight: normal;
+ font-weight: normal;
}
</style>
diff --git a/src/components/TaskStatusDisplay.vue b/src/components/TaskStatusDisplay.vue
index 94d9b84f..e654fc1d 100644
--- a/src/components/TaskStatusDisplay.vue
+++ b/src/components/TaskStatusDisplay.vue
@@ -58,6 +58,10 @@ export default {
default: null,
},
},
+ emits: [
+ 'status-clicked',
+ 'reset-status',
+ ],
data() {
return {
resetStatusTimeout: null,