fix the build
This commit is contained in:
parent
e7f251c105
commit
a438f35478
|
@ -13,9 +13,13 @@ import ObjectController from 'discourse/controllers/object';
|
||||||
**/
|
**/
|
||||||
export default ObjectController.extend(ModalFunctionality, {
|
export default ObjectController.extend(ModalFunctionality, {
|
||||||
loading: true,
|
loading: true,
|
||||||
viewMode: Discourse.Mobile.mobileView ? "inline" : "side_by_side",
|
viewMode: "side_by_side",
|
||||||
revisionsTextKey: "post.revisions.controls.comparing_previous_to_current_out_of_total",
|
revisionsTextKey: "post.revisions.controls.comparing_previous_to_current_out_of_total",
|
||||||
|
|
||||||
|
_changeViewModeOnMobile: function() {
|
||||||
|
if (Discourse.Mobile.mobileView) { this.set("viewMode", "inline"); }
|
||||||
|
}.on("init"),
|
||||||
|
|
||||||
refresh: function(postId, postVersion) {
|
refresh: function(postId, postVersion) {
|
||||||
this.set("loading", true);
|
this.set("loading", true);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue