Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
if (syncStatus === SyncStatus.UP_TO_DATE) {
// facing some zoning problems here !!
// why ??
// forcing to run in the ngzone
this.ngZone.run(() => {
this.messageText = '应用程式是最新的!';
});
}
// not facing zoning issue here ?
switch (syncStatus) {
case SyncStatus.IN_PROGRESS:
this.messageText = '正在进行更新 ..';
break;
case SyncStatus.CHECKING_FOR_UPDATE:
this.messageText = '检查更新 ..';
break;
case SyncStatus.DOWNLOADING_PACKAGE:
this.messageText = '下载包 ..';
break;
case SyncStatus.INSTALLING_UPDATE:
this.messageText = '安装更新 ..';
break;
case SyncStatus.UPDATE_INSTALLED: