mirror of
https://github.com/louislam/dockge.git
synced 2025-02-22 03:25:57 +00:00
feat(containerTerminal): add friendly name
adding the `friendlyname` option to the running and paused container
This commit is contained in:
parent
11f5fff65d
commit
8f142af12e
1 changed files with 9 additions and 4 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue