UX: Display error message if no time frame selected in topic status update
This commit is contained in:
parent
655a08dbbd
commit
5ba2ef4274
|
@ -103,6 +103,14 @@ export default Ember.Controller.extend(ModalFunctionality, {
|
||||||
|
|
||||||
actions: {
|
actions: {
|
||||||
saveTimer() {
|
saveTimer() {
|
||||||
|
if (!this.get("topicTimer.updateTime")) {
|
||||||
|
this.flash(
|
||||||
|
I18n.t("topic.topic_status_update.time_frame_required"),
|
||||||
|
"alert-error"
|
||||||
|
);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
this._setTimer(
|
this._setTimer(
|
||||||
this.get("topicTimer.updateTime"),
|
this.get("topicTimer.updateTime"),
|
||||||
this.get("topicTimer.status_type")
|
this.get("topicTimer.status_type")
|
||||||
|
|
|
@ -1809,6 +1809,7 @@ en:
|
||||||
when: "When:"
|
when: "When:"
|
||||||
public_timer_types: Topic Timers
|
public_timer_types: Topic Timers
|
||||||
private_timer_types: User Topic Timers
|
private_timer_types: User Topic Timers
|
||||||
|
time_frame_required: Please select a time frame
|
||||||
auto_update_input:
|
auto_update_input:
|
||||||
none: "Select a timeframe"
|
none: "Select a timeframe"
|
||||||
later_today: "Later today"
|
later_today: "Later today"
|
||||||
|
|
Loading…
Reference in New Issue