Skip to content

Commit

Permalink
Migration to NcSelect in FlowPostToConversation
Browse files Browse the repository at this point in the history
Signed-off-by: DorraJaouad <[email protected]>
  • Loading branch information
DorraJaouad committed Aug 10, 2023
1 parent 730bbc8 commit c51a742
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/views/FlowPostToConversation.vue
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
<template>
<div>
<NcMultiselect :value="currentRoom"
<NcSelect :value="currentRoom"
:options="roomOptions"
track-by="token"
label="displayName"
@input="(newValue) => newValue !== null && $emit('input', JSON.stringify({'m': currentMode.id, 't': newValue.token }))" />

<NcMultiselect :value="currentMode"
<NcSelect :value="currentMode"
:options="modeOptions"
track-by="id"
label="text"
@input="(newValue) => newValue !== null && $emit('input', JSON.stringify({'m': newValue.id, 't': currentRoom.token }))" />
</div>
Expand All @@ -18,13 +16,13 @@
import axios from '@nextcloud/axios'
import { generateOcsUrl } from '@nextcloud/router'
import NcMultiselect from '@nextcloud/vue/dist/Components/NcMultiselect.js'
import NcSelect from '@nextcloud/vue/dist/Components/NcSelect.js'
import { FLOW, CONVERSATION, PARTICIPANT } from '../constants.js'
export default {
name: 'FlowPostToConversation',
components: { NcMultiselect },
components: { NcSelect },
props: {
value: {
default: JSON.stringify({ m: '0', t: '' }),
Expand Down

0 comments on commit c51a742

Please sign in to comment.