mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-02-20 17:52:46 +00:00
Upgrade ng2-file-upload to v3.0.0
This commit is contained in:
parent
0eef66eabf
commit
69aa4ac613
@ -72,7 +72,7 @@
|
||||
"material-design-icons": "^3.0.1",
|
||||
"mousetrap": "^1.6.5",
|
||||
"ng-circle-progress": "^1.6.0",
|
||||
"ng2-file-upload": "^1.4.0",
|
||||
"ng2-file-upload": "^3.0.0",
|
||||
"ngx-childprocess": "^0.0.6",
|
||||
"ngx-device-detector": "4.0.1",
|
||||
"ngx-electron": "^2.2.0",
|
||||
|
@ -36,9 +36,9 @@ export class AddImageDialogComponent implements OnInit {
|
||||
) {}
|
||||
|
||||
public ngOnInit() {
|
||||
this.controller =this.data;
|
||||
this.controller = this.data;
|
||||
|
||||
this.uploaderImage = new FileUploader({});
|
||||
this.uploaderImage = new FileUploader({url: ''});
|
||||
this.uploaderImage.onAfterAddingFile = (file) => {
|
||||
file.withCredentials = false;
|
||||
};
|
||||
|
@ -85,7 +85,7 @@ export class AddIosTemplateComponent implements OnInit, OnDestroy {
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
this.uploader = new FileUploader({});
|
||||
this.uploader = new FileUploader({url: ''});
|
||||
this.uploader.onAfterAddingFile = (file) => {
|
||||
file.withCredentials = false;
|
||||
};
|
||||
|
@ -62,7 +62,7 @@ export class AddIouTemplateComponent implements OnInit, OnDestroy {
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
this.uploader = new FileUploader({});
|
||||
this.uploader = new FileUploader({url: ''});
|
||||
this.uploader.onAfterAddingFile = (file) => {
|
||||
file.withCredentials = false;
|
||||
};
|
||||
|
@ -72,7 +72,7 @@ export class AddQemuVmTemplateComponent implements OnInit {
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
this.uploader = new FileUploader({});
|
||||
this.uploader = new FileUploader({url: ''});
|
||||
|
||||
this.uploader.onAfterAddingFile = (file) => {
|
||||
file.withCredentials = false;
|
||||
|
@ -33,7 +33,7 @@ export class ImportApplianceComponent implements OnInit {
|
||||
) {}
|
||||
|
||||
ngOnInit() {
|
||||
this.uploader = new FileUploader({});
|
||||
this.uploader = new FileUploader({url: ''});
|
||||
this.uploader.onAfterAddingFile = (file) => {
|
||||
file.withCredentials = false;
|
||||
};
|
||||
|
@ -149,7 +149,7 @@ export class NewTemplateDialogComponent implements OnInit {
|
||||
this.dataSource.paginator = this.paginator;
|
||||
});
|
||||
|
||||
this.uploader = new FileUploader({});
|
||||
this.uploader = new FileUploader({url: ''});
|
||||
this.uploader.onAfterAddingFile = (file) => {
|
||||
file.withCredentials = false;
|
||||
};
|
||||
@ -168,7 +168,7 @@ export class NewTemplateDialogComponent implements OnInit {
|
||||
this.getAppliance(item.url);
|
||||
};
|
||||
|
||||
this.uploaderImage = new FileUploader({});
|
||||
this.uploaderImage = new FileUploader({url: ''});
|
||||
this.uploaderImage.onAfterAddingFile = (file) => {
|
||||
file.withCredentials = false;
|
||||
};
|
||||
|
@ -52,7 +52,7 @@ export class ImportProjectDialogComponent implements OnInit {
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
this.uploader = new FileUploader({});
|
||||
this.uploader = new FileUploader({url: ''});
|
||||
this.uploader.onAfterAddingFile = (file) => {
|
||||
file.withCredentials = false;
|
||||
};
|
||||
|
10
yarn.lock
10
yarn.lock
@ -7094,12 +7094,12 @@ ng-circle-progress@^1.6.0:
|
||||
dependencies:
|
||||
tslib "^2.0.0"
|
||||
|
||||
ng2-file-upload@^1.4.0:
|
||||
version "1.4.0"
|
||||
resolved "https://registry.yarnpkg.com/ng2-file-upload/-/ng2-file-upload-1.4.0.tgz#8dea28d573234c52af474ad2a4001b335271e5c4"
|
||||
integrity sha512-3J/KPU/tyh/ad6TFeUbrxX+SihUj0iOEt2Zsg4EX7mB3GFiQscXOfcUOxCkBtPWWWaqt3azrYbVGzsYa3/7NzQ==
|
||||
ng2-file-upload@^3.0.0:
|
||||
version "3.0.0"
|
||||
resolved "https://registry.yarnpkg.com/ng2-file-upload/-/ng2-file-upload-3.0.0.tgz#55ce8752a93cf234a754fe1009ceff40c625582c"
|
||||
integrity sha512-Xz7Pa9bC9loZ7eu1EzdAyPb3dpLbGe1G1nHgf+YUvtqQepxdQ3OBtd04Jbg3yx8r+nhi8tKGmdajsBAkeA87rA==
|
||||
dependencies:
|
||||
tslib "^1.9.0"
|
||||
tslib "^2.3.0"
|
||||
|
||||
ngx-childprocess@^0.0.6:
|
||||
version "0.0.6"
|
||||
|
Loading…
x
Reference in New Issue
Block a user