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: {
|
||||
|
||||
endpointDisplayFunction(endpoint : string) {
|
||||
if (endpoint) {
|
||||
return endpoint;
|
||||
} else {
|
||||
return this.$t("currentEndpoint");
|
||||
for (const [k, v] of Object.entries(this.$data.agentList)) {
|
||||
if (endpoint) {
|
||||
if (endpoint === v["endpoint"] && v["friendlyname"] !== "") {
|
||||
return v["friendlyname"];
|
||||
}
|
||||
if (endpoint === v["endpoint"] && v["friendlyname"] === "" ) {
|
||||
return endpoint;
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
@ -99,7 +99,7 @@
|
|||
<label for="name" class="form-label">{{ $t("dockgeAgent") }}</label>
|
||||
<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'">
|
||||
({{ $root.agentStatusList[endpoint] }}) {{ (endpoint) ? endpoint : $t("currentEndpoint") }}
|
||||
({{ $root.agentStatusList[endpoint] }}) {{ (agent.friendlyname !== '') ? agent.friendlyname : agent.url || $t("Controller") }}
|
||||
</option>
|
||||
</select>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Reference in a new issue