fix: suggestions

implement suggestions from review
This commit is contained in:
stroskler 2024-08-20 07:57:58 +00:00
parent 1c72c23436
commit 5b2ac56d53
2 changed files with 2 additions and 3 deletions

View file

@ -77,7 +77,6 @@ export class AgentManager {
* @param username
* @param password
* @param name
* @param updatedName
*/
async add(url: string, username: string, password: string, name: string): Promise<Agent> {
let bean = R.dispense("agent") as Agent;

View file

@ -51,8 +51,8 @@
<!-- Agent Display Name -->
<template v-if="$root.agentStatusList[endpoint]">
<span v-if="endpoint === '' && agent.name === ''" class="badge bg-secondary me-2">Controller</span>
<span v-else-if="agent.name === ''" :href="agent.url">{{ endpoint }}</span>
<span v-else :href="agent.url">{{ agent.name }}</span>
<span v-else-if="agent.name === ''" :href="agent.url" class="me-2">{{ endpoint }}</span>
<span v-else :href="agent.url" class="me-2">{{ agent.name }}</span>
</template>
<!-- Edit Name -->