File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
src/fanbox/content_scripts Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 44 :panelPosition =" browserItems.downloadPanelPosition"
55 >
66 <ptk-button class =" download-btn download-btn--min-70"
7+ :class =" downloaded ? 'button--success' : ''"
78 @click =" downloadImages"
89 >{{ downloadText }}</ptk-button >
910 </control-panel >
@@ -37,7 +38,8 @@ export default {
3738 successCount: 0 ,
3839 failCount: 0 ,
3940 downloading: false ,
40- unsupportedPostType: false
41+ unsupportedPostType: false ,
42+ downloaded: false ,
4143 }
4244 },
4345
@@ -96,6 +98,7 @@ export default {
9698 this .totalCount = 0 ;
9799 this .successCount = 0 ;
98100 this .failCount = 0 ;
101+ this .downloaded = false ;
99102
100103 this .injectPage ();
101104 }
@@ -179,6 +182,7 @@ export default {
179182 post .getPackedFile ({ files }).then (result => {
180183 this .lastData = result .data ;
181184 this .lastFilename = result .filename ;
185+ this .downloaded = true ;
182186
183187 this .downloadFile ({
184188 src: result .data ,
You can’t perform that action at this time.
0 commit comments