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

@ -19,10 +19,6 @@ export default class ImageCarouselWithUploadConstructor implements TagDependantU
return false;
}
Priority(): number {
return 0;
}
construct(dependencies): TagDependantUIElement {
return new ImageCarouselWithUpload(dependencies);
}
@ -62,8 +58,4 @@ class ImageCarouselWithUpload extends TagDependantUIElement {
return false;
}
Priority(): number {
return 0;
}
}

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,