feat(compose): add friendly names

when create a new stack via UI the friendly name should also be displayed
This commit is contained in:
stroskler 2024-02-03 15:02:09 +00:00
parent 8f142af12e
commit 62ceb44a5e
No known key found for this signature in database
GPG key ID: BFC1D7C45DD50847

View file

@ -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>