Merge pull request #2704 from m-masataka/change_gettags_interval

change tag retrive's timeout
This commit is contained in:
Steven Zou 2017-07-07 20:28:16 +08:00 committed by GitHub
commit 3cba51ef72

View File

@ -167,7 +167,7 @@ export class TagComponent implements OnInit, OnDestroy {
this.loading = false;
});
let hnd = setInterval(() => this.ref.markForCheck(), 100);
setTimeout(() => clearInterval(hnd), 1000);
setTimeout(() => clearInterval(hnd), 5000);
}
deleteTag(tag: Tag) {
@ -272,4 +272,4 @@ export class TagComponent implements OnInit, OnDestroy {
this.textInput.nativeElement.select();
}
}
}
}