Set default license if none is set while uploading

This commit is contained in:
Pieter Vander Vennet 2020-09-22 01:32:36 +02:00
parent b9dc7a7efc
commit d7083131a1
3 changed files with 5 additions and 9 deletions

View file

@ -148,6 +148,10 @@ export class ImageUploadFlow extends UIElement {
self._isUploading.setData(files.length);
self._allDone.setData(false);
if(self._selectedLicence.data === undefined){
self._selectedLicence.setData("CC0");
}
const opts = self._uploadOptions(self._selectedLicence.data);
Imgur.uploadMultiple(opts.title, opts.description, files,