Skip to content

Commit

Permalink
#54: Styled agent details modal
Browse files Browse the repository at this point in the history
  • Loading branch information
njbrunner committed Dec 31, 2023
1 parent afe686c commit 8346273
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 10 deletions.
26 changes: 20 additions & 6 deletions anms-ui/public/app/components/management/agents/AgentModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,18 @@
size="xl"
ok-only
@hide="closeModal"
title="'Agent Details:' agentInfo.agent_id_string">
title="Agent Details">
<div v-if="agentInfo">
<div>Registered Agents ID = {{ agentInfo.registered_agents_id }}</div>
<div>First Registered: {{ agentInfo.first_registered }}</div>
<div>Last Registered: {{ agentInfo.last_registered }}</div>

<div class="agent-info">
<div>Agent: <b-badge pill
variant="primary"> {{ agentInfo.agent_id_string }} </b-badge></div>
<div>Registered Agents ID: <b-badge pill
variant="primary"> {{ agentInfo.registered_agents_id }} </b-badge></div>
<div>First Registered: <b-badge pill
variant="primary">{{ agentInfo.first_registered }}</b-badge></div>
<div>Last Registered: <b-badge pill
variant="primary">{{ agentInfo.last_registered }}</b-badge></div>
</div>
<reports :agentName="agentInfo.agent_id_string"
:rptts="rptt" />

Expand Down Expand Up @@ -81,5 +87,13 @@ export default {
},
}
</script>
<style>
<style scoped>
.agent-info {
padding: 16px;
margin-bottom: 16px;
background-color: grey;
display: inline-block;
border-radius: 10px;
color: black;
}
</style>
4 changes: 2 additions & 2 deletions anms-ui/public/app/components/management/agents/crud.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<template>
<div>
<div style="margin-top: 16px;">
<!-- what are the inputs -->
<!-- request name -->
<!-- request input -->
<p>Operation: </p>
<h5>Operation: </h5>
<b-form-select v-model="selected"
@change="setParams(selected.command_parameters)"
size="md"
Expand Down
4 changes: 2 additions & 2 deletions anms-ui/public/app/components/management/agents/reports.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

<template>
<div>
<p>Reports sent:</p>
<h5>Reports sent:</h5>
<div v-if="loading"
class="spinner-border text-primary"
role="status">
Expand Down Expand Up @@ -29,7 +29,7 @@
</b-table>
</div>

<!-- :items="reports[selected]" -->
<!-- :items="reports[selected]" -->
</template>

<script>
Expand Down

0 comments on commit 8346273

Please sign in to comment.