mirror of
https://github.com/louislam/dockge.git
synced 2025-02-22 19:45:56 +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: {
|
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;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue