Handle errors in app installation form
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
<Checkbox :label="port.title" v-model="port.enabled" />
|
||||
<small>{{ port.description + '.' + (port.portCount >=1 ? (port.portCount + ' ports. ') : '') }}</small>
|
||||
<small v-show="port.readOnly">{{ $t('appstore.installDialog.portReadOnly') }}</small>
|
||||
<small class="has-error" v-show="error.port === port.value">Port already taken</small>
|
||||
<NumberInput v-model="port.value" :disabled="!port.enabled" :min="1"/>
|
||||
<!-- TODO <p class="text-small text-warning text-bold" ng-show="appInstall.domain.provider === 'cloudflare'">{{ 'appstore.installDialog.cloudflarePortWarning' | tr }} </p> -->
|
||||
</FormGroup>
|
||||
@@ -15,7 +16,7 @@
|
||||
import { defineProps, defineEmits } from 'vue';
|
||||
import { FormGroup, Checkbox, NumberInput } from 'pankow';
|
||||
|
||||
const props = defineProps([ 'tcpPorts', 'udpPorts' ]);
|
||||
const props = defineProps([ 'tcpPorts', 'udpPorts', 'error' ]);
|
||||
defineEmits([ 'update:tcpPorts', 'update:udpPorts' ]);
|
||||
|
||||
// copy value so we can use value as model value
|
||||
|
||||
Reference in New Issue
Block a user