File tree Expand file tree Collapse file tree 4 files changed +30
-3
lines changed
Expand file tree Collapse file tree 4 files changed +30
-3
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ angular.module('zeppelinWebApp', [
4040 }
4141 } ;
4242 } )
43- . config ( function ( $routeProvider ) {
43+ . config ( function ( $routeProvider , ngToastProvider ) {
4444 $routeProvider
4545 . when ( '/' , {
4646 templateUrl : 'app/home/home.html' ,
@@ -61,4 +61,10 @@ angular.module('zeppelinWebApp', [
6161 . otherwise ( {
6262 redirectTo : '/'
6363 } ) ;
64+
65+ ngToastProvider . configure ( {
66+ dismissButton : true ,
67+ dismissOnClick : false ,
68+ timeout : 6000
69+ } ) ;
6470 } ) ;
Original file line number Diff line number Diff line change @@ -285,6 +285,28 @@ kbd {
285285 min-height : 400px ;
286286}
287287
288+ /* ngToast style */
289+
290+ .ng-toast .alert {
291+ color : white !important ;
292+ border : none !important ;
293+ }
294+
295+ .ng-toast .alert-danger {
296+ background-color : # A94442 !important ;
297+ }
298+
299+ .ng-toast .alert-warning {
300+ background-color : # CE9532 !important ;
301+ }
302+
303+ .ng-toast .alert-info {
304+ background-color : # 589EC1 !important ;
305+ }
306+
307+ .ng-toast .alert-success {
308+ background-color : # 428443 !important ;
309+ }
288310
289311/*
290312temporary fix for bootstrap issue (https://github.com/twbs/bootstrap/issues/5865)
Original file line number Diff line number Diff line change 4242 < link rel ="stylesheet " href ="bower_components/ng-sortable/dist/ng-sortable.css " />
4343 < link rel ="stylesheet " href ="bower_components/angular-xeditable/dist/css/xeditable.css " />
4444 < link rel ="stylesheet " href ="bower_components/highlightjs/styles/github.css " />
45- < link rel ="stylesheet " href ="bower_components/angular-ui-notification/dist/angular-ui-notification.min.css " />
4645 < link rel ="stylesheet " href ="bower_components/ngtoast/dist/ngToast.css " />
4746 <!-- endbower -->
4847 < link rel ="stylesheet " href ="bower_components/jquery-ui/themes/base/all.css " />
115114 < script src ="bower_components/highlightjs/highlight.pack.js "> </ script >
116115 < script src ="bower_components/lodash/lodash.js "> </ script >
117116 < script src ="bower_components/angular-filter/dist/angular-filter.min.js "> </ script >
118- < script src ="bower_components/angular-ui-notification/dist/angular-ui-notification.min.js "> </ script >
119117 < script src ="bower_components/ngtoast/dist/ngToast.js "> </ script >
120118 <!-- endbower -->
121119 <!-- endbuild -->
Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ module.exports = function(config) {
5353 'bower_components/highlightjs/highlight.pack.js' ,
5454 'bower_components/lodash/lodash.js' ,
5555 'bower_components/angular-filter/dist/angular-filter.min.js' ,
56+ 'bower_components/ngtoast/dist/ngToast.js' ,
5657 'bower_components/angular-mocks/angular-mocks.js' ,
5758 // endbower
5859 'src/app/app.js' ,
You can’t perform that action at this time.
0 commit comments