mirror of
https://github.com/discourse/discourse-subscriptions.git
synced 2025-02-16 16:34:43 +00:00
DEV: Transition from Ember constant to imports (#34)
This commit is contained in:
parent
d430098bad
commit
443fdc3ec6
@ -2,10 +2,11 @@ import Controller from "@ember/controller";
|
||||
import Subscription from "discourse/plugins/discourse-subscriptions/discourse/models/subscription";
|
||||
import Transaction from "discourse/plugins/discourse-subscriptions/discourse/models/transaction";
|
||||
import I18n from "I18n";
|
||||
import { not } from "@ember/object/computed";
|
||||
|
||||
export default Controller.extend({
|
||||
selectedPlan: null,
|
||||
isAnonymous: Ember.computed.not("currentUser"),
|
||||
isAnonymous: not("currentUser"),
|
||||
|
||||
init() {
|
||||
this._super(...arguments);
|
||||
|
@ -1,8 +1,9 @@
|
||||
import EmberObject from "@ember/object";
|
||||
import discourseComputed from "discourse-common/utils/decorators";
|
||||
import { computed } from "@ember/object";
|
||||
|
||||
const Plan = EmberObject.extend({
|
||||
amountDollars: Ember.computed("unit_amount", {
|
||||
amountDollars: computed("unit_amount", {
|
||||
get() {
|
||||
return parseFloat(this.get("unit_amount") / 100).toFixed(2);
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user