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>2021-12-04 22:48:16 +0300
committerRaimund Schlüßler <raimund.schluessler@mailbox.org>2021-12-04 22:48:16 +0300
commite9aeb61245e01025a82b9fde09e17e6d494c1939 (patch)
tree9c4ab96b514a41ae90c882d20d65786b59cfd490 /src
parente6cd60d140618fd82ec0e6f2d523c38fa4e6299b (diff)
Track calendar by url in multiselect
and fix translate while we are at it Signed-off-by: Raimund Schlüßler <raimund.schluessler@mailbox.org>
Diffstat (limited to 'src')
-rw-r--r--src/components/AppSidebar/CalendarPickerItem.vue11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/components/AppSidebar/CalendarPickerItem.vue b/src/components/AppSidebar/CalendarPickerItem.vue
index 7a65290f..f54dd245 100644
--- a/src/components/AppSidebar/CalendarPickerItem.vue
+++ b/src/components/AppSidebar/CalendarPickerItem.vue
@@ -26,11 +26,11 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
<div class="property__item">
<Multiselect
label="displayName"
- track-by="displayName"
+ track-by="url"
:disabled="isDisabled"
:options="calendars"
:value="calendar"
- :placeholder="translate('tasks', 'Select a calendar')"
+ :placeholder="t('tasks', 'Select a calendar')"
@select="change">
<template #singleLabel="scope">
<CalendarPickerOption v-bind="scope.option" />
@@ -43,7 +43,7 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
color=""
owner=""
:is-shared-with-me="false"
- :display-name="translate('tasks', 'No calendar matches the search.')" />
+ :display-name="t('tasks', 'No calendar matches the search.')" />
</template>
</Multiselect>
</div>
@@ -52,7 +52,7 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
<script>
import CalendarPickerOption from './CalendarPickerOption'
-import { translate } from '@nextcloud/l10n'
+import { translate as t } from '@nextcloud/l10n'
import Multiselect from '@nextcloud/vue/dist/Components/Multiselect'
export default {
@@ -80,7 +80,8 @@ export default {
},
},
methods: {
- translate,
+ t,
+
/**
* TODO: this should emit the calendar id instead
*