mirror of
https://github.com/louislam/dockge.git
synced 2026-05-22 06:22:17 +00:00
feat: dockge set/update agent friendly name (#414)
Co-authored-by: cmcooper1980 <31871143+cmcooper1980@users.noreply.github.com>
This commit is contained in:
@@ -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["name"] !== "") {
|
||||
return v["name"];
|
||||
}
|
||||
if (endpoint === v["endpoint"] && v["name"] === "" ) {
|
||||
return endpoint;
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user