Skip to content

Commit

Permalink
DEV: Use Discourse decorators
Browse files Browse the repository at this point in the history
  • Loading branch information
udan11 committed Nov 29, 2019
1 parent f2a4633 commit 4b25638
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
@@ -1,10 +1,10 @@
import discourseComputed from "discourse-common/utils/decorators";
import { ajax } from "discourse/lib/ajax";
import showModal from "discourse/lib/show-modal";
import ModalFunctionality from "discourse/mixins/modal-functionality";
import computed from "ember-addons/ember-computed-decorators";

export default Ember.Controller.extend(ModalFunctionality, {
@computed("model.custom_fields.encrypt_private")
@discourseComputed("model.custom_fields.encrypt_private")
keys() {
const keys = [];
if (this.model.custom_fields.encrypt_private) {
Expand Down
@@ -1,3 +1,4 @@
import { observes, on } from "discourse-common/utils/decorators";
import { ajax } from "discourse/lib/ajax";
import Composer from "discourse/models/composer";
import {
Expand All @@ -12,7 +13,6 @@ import {
decrypt,
importKey
} from "discourse/plugins/discourse-encrypt/lib/protocol";
import { observes, on } from "ember-addons/ember-computed-decorators";

export default {
name: "hook-composer",
Expand Down

0 comments on commit 4b25638

Please sign in to comment.