2013-08-21 10:49:35 -04:00
|
|
|
/**
|
2013-08-21 12:03:21 -04:00
|
|
|
The modal for viewing the details of a staff action log record
|
|
|
|
for when a site customization is created or changed.
|
2013-08-21 10:49:35 -04:00
|
|
|
|
|
|
|
@class ChangeSiteCustomizationDetailsController
|
|
|
|
@extends Discourse.Controller
|
|
|
|
@namespace Discourse
|
|
|
|
@uses Discourse.ModalFunctionality
|
|
|
|
@module Discourse
|
|
|
|
**/
|
2014-07-22 23:20:45 -04:00
|
|
|
export default Discourse.ObjectController.extend(Discourse.ModalFunctionality, {
|
2013-08-21 10:49:35 -04:00
|
|
|
previousSelected: Ember.computed.equal('selectedTab', 'previous'),
|
|
|
|
newSelected: Ember.computed.equal('selectedTab', 'new'),
|
|
|
|
|
|
|
|
onShow: function() {
|
|
|
|
this.selectNew();
|
|
|
|
},
|
|
|
|
|
|
|
|
selectNew: function() {
|
|
|
|
this.set('selectedTab', 'new');
|
|
|
|
},
|
|
|
|
|
|
|
|
selectPrevious: function() {
|
|
|
|
this.set('selectedTab', 'previous');
|
|
|
|
}
|
|
|
|
});
|