Skip to content
Snippets Groups Projects
Verified Commit 374ee8a4 authored by Alexander-Krause's avatar Alexander-Krause
Browse files

reset route

parent 1d5f9578
No related branches found
No related tags found
No related merge requests found
......@@ -9,6 +9,7 @@ export default Controller.extend(AlertifyHandler, {
agentForDetailView: null,
renderingService: service("rendering-service"),
agentReload: service("agent-reload"),
// closure action for node-overview component
showDetailsComponent(emberRecord) {
......@@ -17,6 +18,7 @@ export default Controller.extend(AlertifyHandler, {
const possibleModels = ["procezz", "agent"];
if(possibleModels.includes(modelName)) {
this.set("agentReload.shallUpdate", false);
this.set(modelName + 'ForDetailView', emberRecord);
}
......
import BaseRoute from 'explorviz-frontend/routes/base-route';
import { on } from "@ember/object/evented";
import Route from '@ember/routing/route';
import { inject as service } from "@ember/service";
import AuthenticatedRouteMixin from
'ember-simple-auth/mixins/authenticated-route-mixin';
export default Route.extend(AuthenticatedRouteMixin, {
export default BaseRoute.extend(AuthenticatedRouteMixin, {
agentReload: service("agent-reload"),
actions: {
// @Override BaseRoute
resetRoute() {
this.controller.set('procezzForDetailView', null);
this.controller.set('agentForDetailView', null);
// stop first, there might be an old service instance running
this.get("agentReload").stopUpdate();
this.get("agentReload").startUpdate();
}
},
setupProcessView: on('activate', function(){
this.controllerFor('discovery').setup();
......
......@@ -49,9 +49,17 @@
</td>
</tr>
<tr>
<td><b>User-defined Execution Command</b></td>
<td>
{{input class="form-control" style="height: auto;" value=procezz.userExecutionCommand}}
<b>User-defined Execution Command</b>
<p class="text-muted" style="margin-top: 1cm;">
Possible Entry
</p>
</td>
<td>
{{input class="form-control" style="height: auto;" value=procezz.userExecutionCommand}}
<p class="text-muted" style="margin-top: 1cm;">
Your password must be 8-20 characters long, contain letters and numbers, and must not contain spaces, special characters, or emoji. Your password must be 8-20 characters long, contain letters and numbers, and must not contain spaces, special characters, or emoji. Your password must be 8-20 characters long, contain letters and numbers, and must not contain spaces, special characters, or emoji. Your password must be 8-20 characters long, contain letters and numbers, and must not contain spaces, special characters, or emoji.
</p>
</td>
</tr>
<tr>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment