##// 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 6 <style include="shared-styles"></style>
7 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 16 <div class="toast-message-holder">
11 17 <template is="dom-repeat" items="{{toasts}}">
12 18 <div class$="alert alert-{{item.level}}">
@@ -15,7 +21,7 b''
15 21 </template>
16 22 </div>
17 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 25 </div>
20 26 </paper-toast>
21 27 </template>
@@ -20,6 +20,8 b' Polymer({'
20 20 },
21 21 dismissNotifications: function(){
22 22 this.$['p-toast'].close();
23 },
24 handleClosed: function(){
23 25 this.splice('toasts', 0);
24 26 },
25 27 open: function(){
General Comments 0
You need to be logged in to leave comments. Login now