Browse Source

feat(gui-v2): Discord Channel

pull/2838/head
Wing-Kam Wong 2 years ago
parent
commit
2cfeca4a96
  1. 18
      packages/nc-gui-v2/components/webhook/Editor.vue

18
packages/nc-gui-v2/components/webhook/Editor.vue

@ -294,13 +294,25 @@ onMounted(() => {
v-model:value="formState.channels" v-model:value="formState.channels"
size="large" size="large"
:options="teamsChannels" :options="teamsChannels"
placeholder="Select Microsoft Teams channels" placeholder="Select Microsoft Teams channels"
:filter-option="filterOption"
/>
</a-form-item>
</a-col>
</a-row>
<a-row v-if="formState.notification.type === 'Discord'" type="flex">
<a-col :span="24">
<a-form-item v-bind="validateInfos['notification.channels']">
<a-auto-complete
v-model:value="formState.channels"
size="large"
:options="discordChannels"
placeholder="Select Discord channels"
:filter-option="filterOption" :filter-option="filterOption"
/> />
</a-form-item> </a-form-item>
</a-col> </a-col>
</a-row> </a-row>
<a-row v-if="formState.notification.type === 'Discord'" class="mb-5" type="flex"> TODO: Discord </a-row>
<a-row v-if="formState.notification.type === 'Mattermost'" class="mb-5" type="flex"> TODO: Mattermost </a-row> <a-row v-if="formState.notification.type === 'Mattermost'" class="mb-5" type="flex"> TODO: Mattermost </a-row>
<a-row v-if="formInput[formState.notification.type] && notification" class="mb-5" type="flex"> <a-row v-if="formInput[formState.notification.type] && notification" class="mb-5" type="flex">
<a-col v-for="(input, i) in formInput[formState.notification.type]" :key="i" :span="24"> <a-col v-for="(input, i) in formInput[formState.notification.type]" :key="i" :span="24">
@ -356,4 +368,4 @@ onMounted(() => {
</div> </div>
</a-form-item> </a-form-item>
</a-form> </a-form>
</template> </template>
Loading…
Cancel
Save