mirror of
https://github.com/louislam/dockge.git
synced 2025-02-22 19:45:56 +00:00
chore(deps): update from upstream
Merge branch 'feat/dockge-agents-friendly-name' into feat/dockge-agents-friendly-name-editable
This commit is contained in:
commit
5885665b4d
2 changed files with 10 additions and 5 deletions
|
@ -131,10 +131,15 @@ export default defineComponent({
|
||||||
methods: {
|
methods: {
|
||||||
|
|
||||||
endpointDisplayFunction(endpoint : string) {
|
endpointDisplayFunction(endpoint : string) {
|
||||||
if (endpoint) {
|
for (const [k, v] of Object.entries(this.$data.agentList)) {
|
||||||
return endpoint;
|
if (endpoint) {
|
||||||
} else {
|
if (endpoint === v["endpoint"] && v["friendlyname"] !== "") {
|
||||||
return this.$t("currentEndpoint");
|
return v["friendlyname"];
|
||||||
|
}
|
||||||
|
if (endpoint === v["endpoint"] && v["friendlyname"] === "" ) {
|
||||||
|
return endpoint;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -99,7 +99,7 @@
|
||||||
<label for="name" class="form-label">{{ $t("dockgeAgent") }}</label>
|
<label for="name" class="form-label">{{ $t("dockgeAgent") }}</label>
|
||||||
<select v-model="stack.endpoint" class="form-select">
|
<select v-model="stack.endpoint" class="form-select">
|
||||||
<option v-for="(agent, endpoint) in $root.agentList" :key="endpoint" :value="endpoint" :disabled="$root.agentStatusList[endpoint] != 'online'">
|
<option v-for="(agent, endpoint) in $root.agentList" :key="endpoint" :value="endpoint" :disabled="$root.agentStatusList[endpoint] != 'online'">
|
||||||
({{ $root.agentStatusList[endpoint] }}) {{ (endpoint) ? endpoint : $t("currentEndpoint") }}
|
({{ $root.agentStatusList[endpoint] }}) {{ (agent.friendlyname !== '') ? agent.friendlyname : agent.url || $t("Controller") }}
|
||||||
</option>
|
</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Reference in a new issue