diff --git a/zeppelin-web/bower.json b/zeppelin-web/bower.json
index b5b439ae7f7..04bdbf86b70 100644
--- a/zeppelin-web/bower.json
+++ b/zeppelin-web/bower.json
@@ -25,7 +25,8 @@
"angular-xeditable": "0.1.8",
"highlightjs": "~8.4.0",
"lodash": "~3.9.3",
- "angular-filter": "~0.5.4"
+ "angular-filter": "~0.5.4",
+ "ngtoast": "~1.5.5"
},
"devDependencies": {
"angular-mocks": "1.3.8"
diff --git a/zeppelin-web/src/app/app.js b/zeppelin-web/src/app/app.js
index 6dfa8e5d911..28a84e07a3c 100644
--- a/zeppelin-web/src/app/app.js
+++ b/zeppelin-web/src/app/app.js
@@ -30,7 +30,8 @@ angular.module('zeppelinWebApp', [
'angular.filter',
'monospaced.elastic',
'puElasticInput',
- 'xeditable'
+ 'xeditable',
+ 'ngToast'
])
.filter('breakFilter', function() {
return function (text) {
@@ -39,7 +40,7 @@ angular.module('zeppelinWebApp', [
}
};
})
- .config(function ($routeProvider) {
+ .config(function ($routeProvider, ngToastProvider) {
$routeProvider
.when('/', {
templateUrl: 'app/home/home.html',
@@ -60,4 +61,10 @@ angular.module('zeppelinWebApp', [
.otherwise({
redirectTo: '/'
});
+
+ ngToastProvider.configure({
+ dismissButton: true,
+ dismissOnClick: false,
+ timeout: 6000
+ });
});
diff --git a/zeppelin-web/src/app/home/home.css b/zeppelin-web/src/app/home/home.css
index 5d5e1159808..c42b4695089 100644
--- a/zeppelin-web/src/app/home/home.css
+++ b/zeppelin-web/src/app/home/home.css
@@ -285,6 +285,28 @@ kbd {
min-height: 400px;
}
+/* ngToast style */
+
+.ng-toast .alert {
+ color: white !important;
+ border: none !important;
+}
+
+.ng-toast .alert-danger {
+ background-color: #A94442 !important;
+}
+
+.ng-toast .alert-warning {
+ background-color: #CE9532 !important;
+}
+
+.ng-toast .alert-info {
+ background-color: #589EC1 !important;
+}
+
+.ng-toast .alert-success {
+ background-color: #428443 !important;
+}
/*
temporary fix for bootstrap issue (https://github.com/twbs/bootstrap/issues/5865)
diff --git a/zeppelin-web/src/assets/styles/looknfeel/default.css b/zeppelin-web/src/assets/styles/looknfeel/default.css
index 8aeee956399..56db526d3b9 100644
--- a/zeppelin-web/src/assets/styles/looknfeel/default.css
+++ b/zeppelin-web/src/assets/styles/looknfeel/default.css
@@ -64,4 +64,4 @@ body {
.executionTime,
.nv-controlsWrap {
display:block;
-}
\ No newline at end of file
+}
diff --git a/zeppelin-web/src/index.html b/zeppelin-web/src/index.html
index 90b3f0a0569..9e41b30060c 100644
--- a/zeppelin-web/src/index.html
+++ b/zeppelin-web/src/index.html
@@ -42,6 +42,7 @@
+
@@ -60,6 +61,7 @@
+