File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 34
34
<a class =" button refresh"
35
35
@click =" refresh"
36
36
title =" Force Refresh" >
37
- <i class =" material-icons" >cached </i >
37
+ <i class =" material-icons" ref = " refresh " >refresh </i >
38
38
<span class =" pane-name" >Refresh</span >
39
39
</a >
40
40
<span class =" active-bar" ></span >
@@ -78,7 +78,13 @@ export default {
78
78
}
79
79
},
80
80
refresh () {
81
+ let refreshIcon = this .$refs .refresh
82
+ refreshIcon .style .animation = ' none'
83
+
81
84
bridge .send (' refresh' )
85
+ bridge .once (' flush' , () => {
86
+ refreshIcon .style .animation = ' rotate 1s'
87
+ })
82
88
},
83
89
updateActiveBar () {
84
90
const activeButton = this .$el .querySelector (' .button.active' )
Original file line number Diff line number Diff line change @@ -95,3 +95,10 @@ $arrow-color = #444
95
95
text-align center
96
96
padding 0.5em
97
97
margin 0 auto
98
+
99
+ @keyframes rotate
100
+ 0%
101
+ transform rotate (0deg )
102
+ 100%
103
+ transform rotate (360deg )
104
+
You can’t perform that action at this time.
0 commit comments