aboutsummaryrefslogtreecommitdiffstats
path: root/ui/imports/ui/components/scheduled-scan/scheduled-scan.js
diff options
context:
space:
mode:
authorKoren Lev <korenlev@gmail.com>2017-08-14 18:04:50 +0300
committerKoren Lev <korenlev@gmail.com>2017-08-14 18:04:50 +0300
commit502402dde98e63677e34078c50e3854964c81694 (patch)
treeee681d8001b6a5beee5f2a2ad2f52ffeac7bf946 /ui/imports/ui/components/scheduled-scan/scheduled-scan.js
parent472b870cd5fb1eda282af648ef1b0b92d12d8c5e (diff)
add mulitple dept attirubute showing in popup window + lose us-move-up-scan-opening-message-in-ui
Change-Id: I3480d155c418c30224856f89c874c889dd3da9e5 Signed-off-by: Koren Lev <korenlev@gmail.com>
Diffstat (limited to 'ui/imports/ui/components/scheduled-scan/scheduled-scan.js')
-rw-r--r--ui/imports/ui/components/scheduled-scan/scheduled-scan.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/ui/imports/ui/components/scheduled-scan/scheduled-scan.js b/ui/imports/ui/components/scheduled-scan/scheduled-scan.js
index 4092d00..56622dc 100644
--- a/ui/imports/ui/components/scheduled-scan/scheduled-scan.js
+++ b/ui/imports/ui/components/scheduled-scan/scheduled-scan.js
@@ -41,10 +41,13 @@ Template.ScheduledScan.onCreated(function() {
envsAsOptions: [],
logLevelsAsOptions: [],
pageHeader: 'Schedule a Scan',
+ reload: null,
});
instance.autorun(function () {
let data = Template.currentData();
+ instance.state.get('reload');
+
new SimpleSchema({
_id: {
type: { _str: { type: String, regEx: SimpleSchema.RegEx.Id } },
@@ -55,6 +58,12 @@ Template.ScheduledScan.onCreated(function() {
}).validate(data);
instance.state.set('action', data.action);
+ instance.state.set('isError', false);
+ instance.state.set('isSuccess', false);
+ instance.state.set('isMessage', false);
+ instance.state.set('message', null);
+ instance.state.set('disabled', false);
+
R.when(R.pipe(R.isNil, R.not), x => instance.state.set('_id', x))(data._id);
R.when(R.pipe(R.isNil, R.not), x => instance.state.set('env', x))(data.env);
});
@@ -500,4 +509,7 @@ function processActionResult(instance, error) {
}
//Router.go('/link-types-list');
+ setTimeout(() => {
+ instance.state.set('reload', Date.now());
+ }, 7000);
}