From 122d17bc93d3c19dd164618d64acfbe30202dc09 Mon Sep 17 00:00:00 2001 From: maggiolo00 Date: Mon, 16 Jan 2017 14:26:55 +0100 Subject: [PATCH] Added validation on Number of clusters https://github.com/orientechnologies/orientdb-studio/issues/431 --- src/app.js | 1 + src/components/schema/edge/newEdgeModal.html | 17 +++++++++++++---- .../schema/generic/newGenericModal.html | 13 +++++++++++-- .../schema/vertex/newVertexModal.html | 13 +++++++++++-- webpack.config.js | 2 +- 5 files changed, 37 insertions(+), 9 deletions(-) diff --git a/src/app.js b/src/app.js index ccaae9f4..df636c09 100644 --- a/src/app.js +++ b/src/app.js @@ -9,6 +9,7 @@ import {HttpModule} from '@angular/http'; import {platformBrowserDynamic} from '@angular/platform-browser-dynamic'; + import 'core-js'; import 'babel-polyfill'; import 'zone.js'; diff --git a/src/components/schema/edge/newEdgeModal.html b/src/components/schema/edge/newEdgeModal.html index fc20939f..369dc09b 100644 --- a/src/components/schema/edge/newEdgeModal.html +++ b/src/components/schema/edge/newEdgeModal.html @@ -81,10 +81,19 @@ -
- -
- +
+ +
+ +
+
+ Number of clusters should be >= 1 + + Invalid Number
diff --git a/src/components/schema/generic/newGenericModal.html b/src/components/schema/generic/newGenericModal.html index d82e5122..12c8be09 100644 --- a/src/components/schema/generic/newGenericModal.html +++ b/src/components/schema/generic/newGenericModal.html @@ -53,10 +53,19 @@
-
+
- + +
+
+ Number of clusters should be >= 1 + + Invalid Number
diff --git a/src/components/schema/vertex/newVertexModal.html b/src/components/schema/vertex/newVertexModal.html index f0981bf8..83f22dc6 100644 --- a/src/components/schema/vertex/newVertexModal.html +++ b/src/components/schema/vertex/newVertexModal.html @@ -56,10 +56,19 @@
-
+
- + +
+
+ Number of clusters should be >= 1 + + Invalid Number
diff --git a/webpack.config.js b/webpack.config.js index 10fd145e..6c684f98 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -44,7 +44,7 @@ module.exports = { loader: "style-loader!css-loader" }, { - test: /\.(eot|svg|ttf|gif|woff(2)?)(\?v=\d+\.\d+\.\d+)?/, + test: /\.(eot|svg|ttf|woff(2)?)(\?v=\d+\.\d+\.\d+)?/, loader: 'url-loader' }, {