diff --git a/www/package.json b/www/package.json index 40b4d0432..7ef08b028 100755 --- a/www/package.json +++ b/www/package.json @@ -21,6 +21,7 @@ "angular-bootstrap-multiselect": "git+https://github.com/bentorfs/angular-bootstrap-multiselect.git", "angular-clipboard": "^1.6.2", "angular-images-resizer": "^2.0.2", + "angular-input-masks": "^4.1.0", "angular-local-storage": "^0.7.1", "angular-messages": "1.6.8", "angular-moment": "^1.2.0", diff --git a/www/src/app/index.module.js b/www/src/app/index.module.js index 85b081c67..6a3e7f91c 100755 --- a/www/src/app/index.module.js +++ b/www/src/app/index.module.js @@ -33,6 +33,7 @@ const App = angular.module('cortex', [ 'btorfs.multiselect', 'LocalStorageModule', 'angularUtils.directives.dirPagination', + 'ui.utils.masks', // core coreModule.name, diff --git a/www/src/app/index.vendor.js b/www/src/app/index.vendor.js index 2380d377c..63ada7239 100755 --- a/www/src/app/index.vendor.js +++ b/www/src/app/index.vendor.js @@ -40,6 +40,8 @@ import 'angular-images-resizer'; import 'angular-base64-upload'; +import 'angular-input-masks'; + // local scripts //import "../assets/js/..."; diff --git a/www/src/app/pages/admin/organizations/components/analyzer-config-form.controller.js b/www/src/app/pages/admin/organizations/components/analyzer-config-form.controller.js index 445f71ac5..6e2a9988f 100644 --- a/www/src/app/pages/admin/organizations/components/analyzer-config-form.controller.js +++ b/www/src/app/pages/admin/organizations/components/analyzer-config-form.controller.js @@ -11,6 +11,11 @@ export default class AnalyzerConfigFormController { this.rateUnits = ['Day', 'Month']; } + $onInit() { + this.useGlobalCache = + this.analyzer.jobCache === null || this.analyzer.jobCache === undefined; + } + applyConfig(config) { _.forEach( _.keys(config), diff --git a/www/src/app/pages/admin/organizations/components/analyzer-config-form.html b/www/src/app/pages/admin/organizations/components/analyzer-config-form.html index ec89c439a..287c058d1 100644 --- a/www/src/app/pages/admin/organizations/components/analyzer-config-form.html +++ b/www/src/app/pages/admin/organizations/components/analyzer-config-form.html @@ -73,7 +73,7 @@
Define the number minutes for analysis report caching, or use the globally defined value.
+