Browse Source

Fix no Add button when client Allowed Ips or Server Allowed Ips is empty

pull/1714/head
yanghuanglin 5 months ago
parent
commit
6e0f043158
  1. 8
      src/app/components/Form/ArrayField.vue

8
src/app/components/Form/ArrayField.vue

@ -1,6 +1,14 @@
<template> <template>
<div v-if="data?.length === 0"> <div v-if="data?.length === 0">
{{ emptyText || $t('form.noItems') }} {{ emptyText || $t('form.noItems') }}
<div class="mt-2">
<BaseButton
as="input"
type="button"
:value="$t('form.add')"
@click="add"
/>
</div>
</div> </div>
<div v-else class="flex flex-col gap-2"> <div v-else class="flex flex-col gap-2">
<div v-for="(item, i) in data" :key="i"> <div v-for="(item, i) in data" :key="i">

Loading…
Cancel
Save