Skip to content

Commit

Permalink
feat(containerTerminal): add friendly name
Browse files Browse the repository at this point in the history
adding the `friendlyname` option to the running and paused container
  • Loading branch information
lohrbini committed Feb 2, 2024
1 parent 11f5fff commit 96b5205
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions frontend/src/mixins/socket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'];

Check failure on line 137 in frontend/src/mixins/socket.ts

View workflow job for this annotation

GitHub Actions / ci (ubuntu-latest, 18.17.1)

Strings must use doublequote
}
if (endpoint === v["endpoint"] && v["friendlyname"] === "" ) {
return endpoint;
}
}
}
},

Expand Down

0 comments on commit 96b5205

Please sign in to comment.