Skip to content

Commit

Permalink
More linting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jericson committed Mar 28, 2024
1 parent 12b79c2 commit f5933cd
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
1 change: 1 addition & 0 deletions app/contact_store.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
class ContactStore
class << self
def get_contacts
Expand Down
1 change: 1 addition & 0 deletions app/controllers/contact_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# coding: utf-8
# frozen_string_literal: true
class ContactController < ApplicationController

# skip_before_action :check_xhr, raise: false
Expand Down
1 change: 1 addition & 0 deletions app/controllers/contacts_controller.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
class ContactsController < ApplicationController

skip_before_action :check_xhr,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@

<ContactForm />


{{/if}}
12 changes: 6 additions & 6 deletions assets/javascripts/discourse/controllers/contact.js.es6
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ export default Controller.extend({
.then(result => {
for (const contact of result.content) {
this.contacts.pushObject(contact);
};
})
}
});
},

actions: {
Expand All @@ -31,14 +31,14 @@ export default Controller.extend({
contactRecord.save()
.then(result => {
this.contacts.pushObject(result.target);
};)
});
},

deleteContact(contact) {
this.store.destroyRecord('contact', contact)
.then(() => {
this.contacts.removeObject(contact);
};)
});
}
};
})
}
});

0 comments on commit f5933cd

Please sign in to comment.