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 1, 2024
1 parent 11f5fff commit 6529f6d
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'] !== "") {

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

View workflow job for this annotation

GitHub Actions / ci (ubuntu-latest, 18.17.1)

Strings must use doublequote

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

View workflow job for this annotation

GitHub Actions / ci (ubuntu-latest, 18.17.1)

Strings must use doublequote

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

View workflow job for this annotation

GitHub Actions / ci (ARM64, 18.17.1)

Strings must use doublequote

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

View workflow job for this annotation

GitHub Actions / ci (ARM64, 18.17.1)

Strings must use doublequote
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

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

View workflow job for this annotation

GitHub Actions / ci (ARM64, 18.17.1)

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

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

View workflow job for this annotation

GitHub Actions / ci (ubuntu-latest, 18.17.1)

Strings must use doublequote

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

View workflow job for this annotation

GitHub Actions / ci (ubuntu-latest, 18.17.1)

Multiple spaces found before 'v'

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

View workflow job for this annotation

GitHub Actions / ci (ubuntu-latest, 18.17.1)

Strings must use doublequote

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

View workflow job for this annotation

GitHub Actions / ci (ARM64, 18.17.1)

Strings must use doublequote

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

View workflow job for this annotation

GitHub Actions / ci (ARM64, 18.17.1)

Multiple spaces found before 'v'

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

View workflow job for this annotation

GitHub Actions / ci (ARM64, 18.17.1)

Strings must use doublequote
return endpoint;
}
}
}
},

Expand Down

0 comments on commit 6529f6d

Please sign in to comment.