Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Track calendar by url in multiselect #1872

Merged
merged 1 commit into from
Dec 4, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions src/components/AppSidebar/CalendarPickerItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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" />
Expand All @@ -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>
Expand All @@ -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 {
Expand Down Expand Up @@ -80,7 +80,8 @@ export default {
},
},
methods: {
translate,
t,

/**
* TODO: this should emit the calendar id instead
*
Expand Down