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