Skip to content

Commit

Permalink
GCW:1841:- Dependency added for computed property
Browse files Browse the repository at this point in the history
  • Loading branch information
Darshan-Chauhan committed May 1, 2018
1 parent 315ea93 commit 49cce22
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/controllers/item/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@ const { getOwner } = Ember;

export default Ember.Controller.extend({

offer: Ember.computed.alias('model.offer'),
i18n: Ember.inject.service(),
itemDescriptionPlaceholder: Ember.computed(function(){
return this.get("i18n").t("items.add_item.description_placeholder").string;
}),

isOfferReviewed: Ember.computed("model", "model.offer.state", function() {
return this.get("model.offer.state") === "received";
isOfferReviewed: Ember.computed("model", "model.state", "offer", "offer.state", function() {
return this.get("offer.state") === "received";
}),

formData: Ember.computed("model", {
Expand Down

0 comments on commit 49cce22

Please sign in to comment.