File tree 1 file changed +4
-8
lines changed
1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change 1
- import { Data } from '@symbiotejs/symbiote' ;
2
1
import { UploaderBlock } from '../../abstract/UploaderBlock.js' ;
3
2
import { ActivityBlock } from '../../abstract/ActivityBlock.js' ;
4
3
import { UiConfirmation } from '../ConfirmationDialog/ConfirmationDialog.js' ;
@@ -22,12 +21,8 @@ export class UploadList extends UploaderBlock {
22
21
this . initFlow ( true ) ;
23
22
} ,
24
23
onUpload : ( ) => {
25
- this . set$ ( {
26
- uploadBtnHidden : false ,
27
- doneBtnHidden : true ,
28
- uploadBtnDisabled : true ,
29
- '*uploadTrigger' : { } ,
30
- } ) ;
24
+ this . $ [ '*uploadTrigger' ] = { } ;
25
+ this . _updateUploadsState ( ) ;
31
26
} ,
32
27
onDone : ( ) => {
33
28
this . set$ ( {
@@ -150,7 +145,8 @@ export class UploadList extends UploaderBlock {
150
145
doneBtnDisabled : ! fitCountRestrictions || ! fitValidation ,
151
146
152
147
uploadBtnHidden : allUploaded ,
153
- uploadBtnDisabled : summary . uploading > 0 || ! fitCountRestrictions || ! fitValidation ,
148
+ uploadBtnDisabled :
149
+ summary . uploading + summary . uploaded === summary . total || ! fitCountRestrictions || ! fitValidation ,
154
150
155
151
addMoreBtnDisabled : tooMany || exact ,
156
152
addMoreBtnHidden : exact && ! this . getCssData ( '--cfg-multiple' ) ,
You can’t perform that action at this time.
0 commit comments