UX: Display error message if no time frame selected in topic status update

This commit is contained in:
Vinoth Kannan 2019-03-07 02:17:29 +05:30
parent 655a08dbbd
commit 5ba2ef4274
2 changed files with 9 additions and 0 deletions

View File

@ -103,6 +103,14 @@ export default Ember.Controller.extend(ModalFunctionality, {
actions: {
saveTimer() {
if (!this.get("topicTimer.updateTime")) {
this.flash(
I18n.t("topic.topic_status_update.time_frame_required"),
"alert-error"
);
return;
}
this._setTimer(
this.get("topicTimer.updateTime"),
this.get("topicTimer.status_type")

View File

@ -1809,6 +1809,7 @@ en:
when: "When:"
public_timer_types: Topic Timers
private_timer_types: User Topic Timers
time_frame_required: Please select a time frame
auto_update_input:
none: "Select a timeframe"
later_today: "Later today"