mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-28 18:17:29 -05:00
26 lines
705 B
JavaScript
26 lines
705 B
JavaScript
/**
|
|
The modal for viewing the details of a staff action log record
|
|
for when a site customization is created or changed.
|
|
|
|
@class ChangeSiteCustomizationDetailsController
|
|
@extends Discourse.Controller
|
|
@namespace Discourse
|
|
@uses Discourse.ModalFunctionality
|
|
@module Discourse
|
|
**/
|
|
export default Discourse.ObjectController.extend(Discourse.ModalFunctionality, {
|
|
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');
|
|
}
|
|
});
|