Add correct form layout to webhooks

This commit is contained in:
rijkvanzanten
2020-09-10 15:14:04 -04:00
parent 76dea282ad
commit 3e72d09f45
6 changed files with 88 additions and 5 deletions

View File

@@ -2,7 +2,7 @@ import { defineInterface } from '@/interfaces/define';
import InterfaceCollection from './collection.vue';
export default defineInterface(({ i18n }) => ({
id: 'collections',
id: 'collection',
name: i18n.t('interfaces.collection.collection'),
description: i18n.t('interfaces.collection.description'),
icon: 'featured_play_list',

View File

@@ -1,5 +1,8 @@
<template>
<interface-checkboxes :choices="items" @input="$listeners.input" :value="value" :disabled="disabled" />
<v-notice v-if="items.length === 0">
{{ $t('no_collections') }}
</v-notice>
<interface-checkboxes v-else :choices="items" @input="$listeners.input" :value="value" :disabled="disabled" />
</template>
<script lang="ts">