Bring back cloudflare ports warning in all places
This commit is contained in:
@@ -163,6 +163,10 @@ function onImport() {
|
||||
// TODO
|
||||
}
|
||||
|
||||
function onClone(backup) {
|
||||
// TODO
|
||||
}
|
||||
|
||||
async function refresh() {
|
||||
const [error, result] = await appsModel.backups(props.app.id);
|
||||
if (error) return console.error(error);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<script setup>
|
||||
|
||||
import { ref, onMounted } from 'vue';
|
||||
import { ref, onMounted, computed } from 'vue';
|
||||
import { Button, SingleSelect, InputGroup, FormGroup, TextInput } from 'pankow';
|
||||
import PortBindings from '../PortBindings.vue';
|
||||
import AppsModel from '../../models/AppsModel.js';
|
||||
@@ -19,12 +19,15 @@ const overwriteDns = ref(false);
|
||||
const needsOverwriteDns = ref(false);
|
||||
const domain = ref('');
|
||||
const subdomain = ref('');
|
||||
const domainProvider = ref('');
|
||||
const secondaryDomains = ref({});
|
||||
const aliases = ref([]);
|
||||
const redirects =ref([]);
|
||||
const tcpPorts = ref({});
|
||||
const udpPorts = ref({});
|
||||
const domainProvider = computed(() => {
|
||||
const tmp = domains.value.find((d) => d.domain === domain.value);
|
||||
return tmp ? tmp.provider : '';
|
||||
});
|
||||
|
||||
function isNoopOrManual(domain) {
|
||||
const tmp = domains.value.find(d => d.domain === domain);
|
||||
@@ -167,7 +170,7 @@ onMounted(async () => {
|
||||
<TextInput style="flex-grow: 1" v-model="subdomain" :placeholder="$t('app.location.locationPlaceholder')"/>
|
||||
<SingleSelect :disabled="busy" :options="domains" v-model="domain" option-key="domain" option-label="domain"/>
|
||||
</InputGroup>
|
||||
<p class="text-warning" v-if="isNoopOrManual(domain)" v-html="$t('appstore.installDialog.manualWarning', { location: ((subdomain ? subdomain + '.' : '') + domain) })"></p>
|
||||
<div class="warning-label" v-if="isNoopOrManual(domain)" v-html="$t('appstore.installDialog.manualWarning', { location: ((subdomain ? subdomain + '.' : '') + domain) })"></div>
|
||||
</FormGroup>
|
||||
|
||||
<FormGroup v-for="item in secondaryDomains" :key="item.containerPort">
|
||||
@@ -177,7 +180,7 @@ onMounted(async () => {
|
||||
<TextInput style="flex-grow: 1" :id="'secondaryDomainInput' + item.containerPort" v-model="item.subdomain" :placeholder="$t('appstore.installDialog.locationPlaceholder')"/>
|
||||
<SingleSelect :disabled="busy" :options="domains" v-model="item.domain" option-key="domain" option-label="domain"/>
|
||||
</InputGroup>
|
||||
<p class="text-warning" v-if="isNoopOrManual(item.domain)" v-html="$t('appstore.installDialog.manualWarning', { location: ((item.subdomain ? item.subdomain + '.' : '') + item.domain) })"></p>
|
||||
<div class="warning-label" v-if="isNoopOrManual(item.domain)" v-html="$t('appstore.installDialog.manualWarning', { location: ((item.subdomain ? item.subdomain + '.' : '') + item.domain) })"></div>
|
||||
</FormGroup>
|
||||
|
||||
<PortBindings v-model:tcp="tcpPorts" v-model:udp="udpPorts" :error="errorObject" :domain-provider="domainProvider"/>
|
||||
|
||||
Reference in New Issue
Block a user