discourse/app/assets/javascripts/discourse/controllers/post-enqueued.js.es6
2018-06-15 17:03:24 +02:00

9 lines
276 B
JavaScript

export default Ember.Controller.extend({
description: Ember.computed("model.reason", function() {
const reason = this.get("model.reason");
return reason
? I18n.t("queue_reason." + reason + ".description")
: I18n.t("queue.approval.description");
})
});