mirror of
https://github.com/louislam/dockge.git
synced 2025-04-04 23:42:20 +00:00
add new keys
This commit is contained in:
parent
4c14d209b8
commit
a02ce1eab7
6 changed files with 12 additions and 7 deletions
frontend/src
components
lang
pages
|
@ -4,7 +4,7 @@
|
|||
<ul v-if="isArrayInited" class="list-group">
|
||||
<li v-for="(value, index) in array" :key="index" class="list-group-item">
|
||||
<select v-model="array[index]" class="no-bg domain-input">
|
||||
<option value="">Select a network...</option>
|
||||
<option value="">{{ $t(`Select a network...`) }}</option>
|
||||
<option v-for="option in options" :key="option" :value="option">{{ option }}</option>
|
||||
</select>
|
||||
|
||||
|
|
|
@ -116,7 +116,7 @@
|
|||
</label>
|
||||
|
||||
<div v-if="networkList.length === 0 && service.networks && service.networks.length > 0" class="text-warning mb-3">
|
||||
No networks available. You need to add internal networks or enable external networks in the right side first.
|
||||
{{ $t("NoNetworksAvailable") }}
|
||||
</div>
|
||||
|
||||
<ArraySelect name="networks" :display-name="$t('network')" placeholder="Network Name" :options="networkList" />
|
||||
|
@ -127,7 +127,7 @@
|
|||
<label class="form-label">
|
||||
{{ $t("dependsOn") }}
|
||||
</label>
|
||||
<ArrayInput name="depends_on" :display-name="$t('dependsOn')" placeholder="Container Name" />
|
||||
<ArrayInput name="depends_on" :display-name="$t('dependsOn')" :placeholder="$t(`containerName`)" />
|
||||
</div>
|
||||
</div>
|
||||
</transition>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<h5>{{ $t("Internal Networks") }}</h5>
|
||||
<ul class="list-group">
|
||||
<li v-for="(networkRow, index) in networkList" :key="index" class="list-group-item">
|
||||
<input v-model="networkRow.key" type="text" class="no-bg domain-input" placeholder="Network name..." />
|
||||
<input v-model="networkRow.key" type="text" class="no-bg domain-input" :placeholder="$t(`Network name...`)" />
|
||||
<font-awesome-icon icon="times" class="action remove ms-2 me-3 text-danger" @click="remove(index)" />
|
||||
</li>
|
||||
</ul>
|
||||
|
|
|
@ -47,7 +47,7 @@
|
|||
<input
|
||||
v-model="settings.primaryHostname"
|
||||
class="form-control"
|
||||
placeholder="(Unset: Follow current hostname)"
|
||||
:placeholder="$t(`CurrentHostname`)"
|
||||
/>
|
||||
<button class="btn btn-outline-primary" type="button" @click="autoGetPrimaryHostname">
|
||||
{{ $t("autoGet") }}
|
||||
|
|
|
@ -123,5 +123,10 @@
|
|||
"Restarted": "Restarted",
|
||||
"Downed": "Downed",
|
||||
"Switch to sh": "Switch to sh",
|
||||
"terminal": "terminal"
|
||||
"terminal": "Terminal",
|
||||
"CurrentHostname": "(Unset: Follow current hostname)",
|
||||
"New Container Name...": "New Container Name...",
|
||||
"Network name...": "Network name...",
|
||||
"Select a network...": "Select a network...",
|
||||
"NoNetworksAvailable": "No networks available. You need to add internal networks or enable external networks in the right side first."
|
||||
}
|
||||
|
|
|
@ -112,7 +112,7 @@
|
|||
<div v-if="isEditMode" class="input-group mb-3">
|
||||
<input
|
||||
v-model="newContainerName"
|
||||
placeholder="New Container Name..."
|
||||
:placeholder="$t(`New Container Name...`)"
|
||||
class="form-control"
|
||||
@keyup.enter="addContainer"
|
||||
/>
|
||||
|
|
Loading…
Add table
Reference in a new issue