65240: Add community/collection logo on create/edit pages

This commit is contained in:
Kristof De Langhe
2019-10-01 14:42:25 +02:00
parent 2789996000
commit a2695edbac
18 changed files with 300 additions and 36 deletions

View File

@@ -95,7 +95,7 @@ export class UploaderComponent {
disableMultipart: this.uploadFilesOptions.disableMultipart,
itemAlias: this.uploadFilesOptions.itemAlias,
removeAfterUpload: true,
autoUpload: true
autoUpload: this.uploadFilesOptions.autoUpload
});
if (isUndefined(this.enableDragOverDocument)) {
@@ -117,7 +117,10 @@ export class UploaderComponent {
if (isUndefined(this.onBeforeUpload)) {
this.onBeforeUpload = () => {return};
}
this.uploader.onBeforeUploadItem = () => {
this.uploader.onBeforeUploadItem = (item) => {
if (item.url !== this.uploader.options.url) {
item.url = this.uploader.options.url;
}
this.onBeforeUpload();
this.isOverDocumentDropZone = observableOf(false);