##// END OF EJS Templates
notifications: clear out toasts after animation, remove ink animation from the button
ergo -
r778:6acda5b8 default
parent child Browse files
Show More
@@ -6,7 +6,13 b''
6 <style include="shared-styles"></style>
6 <style include="shared-styles"></style>
7 <link rel="stylesheet" href="rhodecode-toast.css">
7 <link rel="stylesheet" href="rhodecode-toast.css">
8
8
9 <paper-toast id="p-toast" duration="0" horizontal-offset="100" horizontal-align="auto" vertical-align="top" always-on-top>
9 <paper-toast id="p-toast"
10 duration="0"
11 horizontal-offset="100"
12 horizontal-align="auto"
13 vertical-align="top"
14 on-iron-overlay-closed="handleClosed"
15 always-on-top>
10 <div class="toast-message-holder">
16 <div class="toast-message-holder">
11 <template is="dom-repeat" items="{{toasts}}">
17 <template is="dom-repeat" items="{{toasts}}">
12 <div class$="alert alert-{{item.level}}">
18 <div class$="alert alert-{{item.level}}">
@@ -15,7 +21,7 b''
15 </template>
21 </template>
16 </div>
22 </div>
17 <div class="toast-close">
23 <div class="toast-close">
18 <paper-button on-tap="dismissNotifications" class="btn btn-default">{{_gettext('Close now')}}</paper-button>
24 <button on-tap="dismissNotifications" class="btn btn-default">{{_gettext('Close now')}}</button>
19 </div>
25 </div>
20 </paper-toast>
26 </paper-toast>
21 </template>
27 </template>
@@ -20,6 +20,8 b' Polymer({'
20 },
20 },
21 dismissNotifications: function(){
21 dismissNotifications: function(){
22 this.$['p-toast'].close();
22 this.$['p-toast'].close();
23 },
24 handleClosed: function(){
23 this.splice('toasts', 0);
25 this.splice('toasts', 0);
24 },
26 },
25 open: function(){
27 open: function(){
General Comments 0
You need to be logged in to leave comments. Login now