Commit e8b52654 authored by limingzhe's avatar limingzhe

fix: debug

parent 74f48a1e
No preview for this file type
......@@ -17,7 +17,8 @@
<button type="button" nz-button nzType="default" *ngIf="showUploadBtn" [disabled]="uploading"
[nzLoading]="uploading" >
<i nz-icon nzType="plus" nzTheme="outline"></i>
<span>{{ uploading ? 'Uploading' : 'Select Video' }}</span>
<span>{{ uploading ? 'Uploading .. ' + progress + '%': 'Select Video' }}</span>
<!--<span>Select Video</span>-->
</button>
......
......@@ -119,7 +119,12 @@ export class UploadVideoComponent implements OnChanges, OnDestroy {
break;
case 'progress':
this.progress = info.event.percent;
console.log('this.progress: ', this.progress);
this.progress = Math.floor(this.progress);
this.doProgress(this.progress);
break;
}
......@@ -205,7 +210,7 @@ export class UploadVideoComponent implements OnChanges, OnDestroy {
p = 0;
}
// console.log(Math.floor(p * 100));
this.progress = Math.floor(p * 100);
// this.progress = Math.floor(p * 100);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment