Skip to content

Commit bb0a261

Browse files
committed
update button style when download is complete
1 parent de5faa8 commit bb0a261

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/fanbox/content_scripts/App.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
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,

0 commit comments

Comments
 (0)