mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-06-22 00:13:36 +00:00
Modified the file upload cancel message
This commit is contained in:
@ -276,7 +276,7 @@ export class AddIosTemplateComponent implements OnInit, OnDestroy {
|
|||||||
cancelUploading() {
|
cancelUploading() {
|
||||||
this.uploader.clearQueue();
|
this.uploader.clearQueue();
|
||||||
this.uploadServiceService.processBarCount(null)
|
this.uploadServiceService.processBarCount(null)
|
||||||
this.toasterService.warning('Image upload cancelled');
|
this.toasterService.warning('File upload cancelled');
|
||||||
// this.uploadServiceService.cancelFileUploading(false)
|
// this.uploadServiceService.cancelFileUploading(false)
|
||||||
// window.location.reload()
|
// window.location.reload()
|
||||||
|
|
||||||
|
@ -137,7 +137,7 @@ export class AddIouTemplateComponent implements OnInit, OnDestroy {
|
|||||||
cancelUploading() {
|
cancelUploading() {
|
||||||
this.uploader.clearQueue();
|
this.uploader.clearQueue();
|
||||||
this.uploadServiceService.processBarCount(100)
|
this.uploadServiceService.processBarCount(100)
|
||||||
this.toasterService.warning('Image upload cancelled');
|
this.toasterService.warning('File upload cancelled');
|
||||||
// this.uploadServiceService.cancelFileUploading(false)
|
// this.uploadServiceService.cancelFileUploading(false)
|
||||||
// window.location.reload()
|
// window.location.reload()
|
||||||
}
|
}
|
||||||
|
@ -429,7 +429,7 @@ export class NewTemplateDialogComponent implements OnInit {
|
|||||||
cancelUploading() {
|
cancelUploading() {
|
||||||
this.uploaderImage.clearQueue();
|
this.uploaderImage.clearQueue();
|
||||||
this.uploadServiceService.processBarCount(null)
|
this.uploadServiceService.processBarCount(null)
|
||||||
this.toasterService.warning('Image upload cancelled');
|
this.toasterService.warning('File upload cancelled');
|
||||||
this.uploadServiceService.cancelFileUploading(false)
|
this.uploadServiceService.cancelFileUploading(false)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -170,7 +170,7 @@ export class ImportProjectDialogComponent implements OnInit {
|
|||||||
cancelUploading() {
|
cancelUploading() {
|
||||||
this.uploader.clearQueue();
|
this.uploader.clearQueue();
|
||||||
this.uploadServiceService.processBarCount(null)
|
this.uploadServiceService.processBarCount(null)
|
||||||
this.toasterService.warning('Image upload cancelled');
|
this.toasterService.warning('File upload cancelled');
|
||||||
this.uploadServiceService.cancelFileUploading(false)
|
this.uploadServiceService.cancelFileUploading(false)
|
||||||
this.isFirstStepCompleted = false
|
this.isFirstStepCompleted = false
|
||||||
this.uploader.cancelAll();
|
this.uploader.cancelAll();
|
||||||
|
Reference in New Issue
Block a user