mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 01:14:12 +08:00
REFACTOR: Remove requirejs
calls
This commit is contained in:
@ -1,3 +1,5 @@
|
||||
import Permalink from 'admin/models/permalink';
|
||||
|
||||
export default Ember.Component.extend({
|
||||
classNames: ['permalink-form'],
|
||||
formSubmitted: false,
|
||||
@ -18,8 +20,6 @@ export default Ember.Component.extend({
|
||||
|
||||
actions: {
|
||||
submit: function() {
|
||||
const Permalink = requirejs('admin/models/permalink').default;
|
||||
|
||||
if (!this.get('formSubmitted')) {
|
||||
const self = this;
|
||||
self.set('formSubmitted', true);
|
||||
|
Reference in New Issue
Block a user