File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -58,14 +58,15 @@ export class SelectAlbum {
58
58
59
59
async addPhotosToAlbum ( event : any , album : any ) {
60
60
event . preventDefault ( ) ;
61
- await this . closePopover ( ) ;
62
61
if ( this . startCallback ) {
63
62
this . startCallback ( ) ;
64
63
}
64
+ await this . closePopover ( ) ;
65
65
const result : boolean = await PhotosService . addPhotosToAlbum (
66
66
album . albumId ,
67
67
this . selectedPhotos
68
68
) ;
69
+ this . selectedPhotos = null ;
69
70
if ( result ) {
70
71
this . present . toast ( 'Photo(s) added to album "' + album . albumName + '".' ) ;
71
72
} else {
@@ -82,7 +83,6 @@ export class SelectAlbum {
82
83
const popoverController = document . querySelector ( 'ion-popover-controller' ) ;
83
84
await popoverController . componentOnReady ( ) ;
84
85
popoverController . dismiss ( ) ;
85
- this . selectedPhotos = null ;
86
86
}
87
87
88
88
render ( ) {
You can’t perform that action at this time.
0 commit comments