Wait to display notice on topic timer (#16509)

This commit is contained in:
Isaac Janzen 2022-04-19 13:41:18 -05:00 committed by GitHub
parent 056c7a3f30
commit 39cb9f105f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -75,6 +75,11 @@ export default Component.extend({
const duration = moment.duration(statusUpdateAt - moment());
const minutesLeft = duration.asMinutes();
if (minutesLeft > 0 || isDeleteRepliesType || this.basedOnLastPost) {
// We don't want to display a notice before a topic timer time has been set
if (!this.executeAt) {
return;
}
let durationMinutes = parseInt(this.durationMinutes, 10) || 0;
let options = {