mirror of
https://github.com/discourse/discourse.git
synced 2025-05-26 08:11:50 +08:00
FIX: Remove more of those pesky View classes
This commit is contained in:
@ -1,3 +1,4 @@
|
||||
import DiscourseURL from 'discourse/lib/url';
|
||||
import { ajax } from 'discourse/lib/ajax';
|
||||
|
||||
export default Ember.Controller.extend({
|
||||
@ -35,8 +36,11 @@ export default Ember.Controller.extend({
|
||||
} else {
|
||||
this._toggleReadOnlyMode(false);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
download(backup) {
|
||||
DiscourseURL.redirectTo(backup.get('link'));
|
||||
}
|
||||
},
|
||||
|
||||
_toggleReadOnlyMode(enable) {
|
||||
|
Reference in New Issue
Block a user