If you click a (?) icon beside the reviewable status a pop up will appear with expanded informatio that explains how the reviewable got its score, and how it compares to system thresholds.
16 lines
459 B
JavaScript
16 lines
459 B
JavaScript
import ModalFunctionality from "discourse/mixins/modal-functionality";
|
|
|
|
export default Ember.Controller.extend(ModalFunctionality, {
|
|
loading: null,
|
|
reviewableExplanation: null,
|
|
|
|
onShow() {
|
|
this.setProperties({ loading: true, reviewableExplanation: null });
|
|
|
|
this.store
|
|
.find("reviewable-explanation", this.model.id)
|
|
.then(result => this.set("reviewableExplanation", result))
|
|
.finally(() => this.set("loading", false));
|
|
}
|
|
});
|