mirror of
https://github.com/discourse/discourse.git
synced 2025-03-09 14:34:35 +00:00
Wait to display notice on topic timer (#16509)
This commit is contained in:
parent
056c7a3f30
commit
39cb9f105f
@ -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 = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user