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

use proposedExecCMD

parent d5983fe3
No related branches found
No related tags found
No related merge requests found
......@@ -17,6 +17,19 @@ export default Component.extend({
saveProcezz() {
this.get('procezz').save({include: 'agent'});
},
setUserExec() {
const proposedExec = this.get('procezz.proposedExecutionCommand');
const decisionMakerString = "Use-OS-Exec-CMD";
if(proposedExec === decisionMakerString) {
this.get('procezz').set('userExecutionCommand', this.get('procezz.osExecutionCommand'));
} else {
this.get('procezz').set('userExecutionCommand', proposedExec);
}
}
}
......
......@@ -24,6 +24,7 @@ export default BaseModel.extend({
osExecutionCommand: attr("string"),
userExecutionCommand: attr("string"),
agentExecutionCommand: attr("string"),
proposedExecutionCommand: attr("string"),
shutdownCommand: attr("string"),
......
......@@ -55,15 +55,17 @@
<tr>
<td>
<b>User 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>
{{textarea rows=1 class="form-control no-horizontal-scroll" value=procezz.userExecutionCommand placeholder=procezz.proposedExecutionCommand}}
<button type="button" class="btn btn-success" style="margin-top: 20px;" {{action "setUserExec"}}>Insert recommendation</button>
</td>
</tr>
<tr>
<td><b>OS (initial) Execution Command</b></td>
<td>
<div class="well well-sm container-word-wrap" style="margin-bottom: 0px;">{{procezz.osExecutionCommand}}
</div>
</td>
</tr>
<tr>
......@@ -76,17 +78,10 @@
</td>
</tr>
<tr>
<td><b>Content of aop.xml</b></td>
<td><b>aop.xml</b></td>
<td>
<div class="form-group">
{{textarea class="form-control no-horizontal-scroll" rows="5" value=procezz.aopContent}}
</div>
</td>
</tr>
<tr>
<td><b>OS (initial) Execution Command</b></td>
<td>
<div class="well well-sm container-word-wrap" style="margin-bottom: 0px;">{{procezz.osExecutionCommand}}
{{textarea class="form-control no-horizontal-scroll" rows="15" value=procezz.aopContent}}
</div>
</td>
</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