mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-02-05 02:29:39 +00:00
Fix use of FileUploader
This commit is contained in:
parent
84169a2c1e
commit
64f9631946
@ -143,7 +143,7 @@ export class NewTemplateDialogComponent implements OnInit {
|
|||||||
this.qemuBinaries = binaries;
|
this.qemuBinaries = binaries;
|
||||||
});
|
});
|
||||||
|
|
||||||
this.uploader = new FileUploader({});
|
this.uploader = new FileUploader({url: ''});
|
||||||
this.uploader.onAfterAddingFile = (file) => {
|
this.uploader.onAfterAddingFile = (file) => {
|
||||||
file.withCredentials = false;
|
file.withCredentials = false;
|
||||||
};
|
};
|
||||||
@ -162,7 +162,7 @@ export class NewTemplateDialogComponent implements OnInit {
|
|||||||
this.getAppliance(item.url);
|
this.getAppliance(item.url);
|
||||||
};
|
};
|
||||||
|
|
||||||
this.uploaderImage = new FileUploader({});
|
this.uploaderImage = new FileUploader({url: ''});
|
||||||
this.uploaderImage.onAfterAddingFile = (file) => {
|
this.uploaderImage.onAfterAddingFile = (file) => {
|
||||||
file.withCredentials = false;
|
file.withCredentials = false;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user