Skip to content

Commit

Permalink
add missing calls to update agent info in modal
Browse files Browse the repository at this point in the history
  • Loading branch information
d-linko committed Dec 12, 2023
1 parent 965e954 commit 53bdf3a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,18 @@ export default {
},
watch: {
showModal(newValue, _) {
const vm = this;
vm.setAgentId(vm.agentInfo.registered_agents_id);
vm.reloadAgent();
console.log(vm.currentAgent)
if (newValue === true) {
this.show();
}
}
},
computed: {
...mapGetters("agents", {
currentAgent: "currentAgent",
rptt: "rptt",
operations: "operations",
Expand Down
10 changes: 1 addition & 9 deletions anms-ui/public/app/core/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ import UserProfile from '@app/components/user/UserProfile';
import UserAdmin from '@app/components/user/UserAdmin';
import Dashboard from "../components/management/monitor/Monitor";
import Agents from "../components/management/agents/Agents";
import Agent from "../components/management/agents/Agent";
import build_ari from "../components/management/builder/buildAri";
import Status from "../components/status/Status";
import Adm from "../components/adm/Adm";
Expand Down Expand Up @@ -79,14 +78,7 @@ export default new Router({
name: 'Agents CBOR',
component: Agents,
props: true
},
{
path: '/agents/id/:agentId',
name: 'Agent Details',
component: Agent,
props: true
},

},
{
path: '/build',
name: 'Build ari',
Expand Down

0 comments on commit 53bdf3a

Please sign in to comment.