diff --git a/controllets/paper-card-controllet/paper-card-controllet.html b/controllets/paper-card-controllet/paper-card-controllet.html index c63e303..f638998 100644 --- a/controllets/paper-card-controllet/paper-card-controllet.html +++ b/controllets/paper-card-controllet/paper-card-controllet.html @@ -109,25 +109,25 @@ <span>{{cardTitle}}</span> <!-- Adding icon based on card type --> - <template is="dom-if" if="{{checkType(type, 'text')}}"> + <template is="dom-if" if="{{checkType(cardType, 'text')}}"> <paper-fab mini icon="create" on-click="_handleDetailsClick"></paper-fab> </template> - <template is="dom-if" if="{{checkType(type, 'image')}}"> + <template is="dom-if" if="{{checkType(cardType, 'image')}}"> <paper-fab mini icon="perm-media" on-click="_handleDetailsClick"></paper-fab> </template> - <template is="dom-if" if="{{checkType(type, 'datalet')}}"> + <template is="dom-if" if="{{checkType(cardType, 'datalet')}}"> <paper-fab mini icon="assessment" on-click="_handleDetailsClick"></paper-fab> </template> - <template is="dom-if" if="{{checkType(type, 'link')}}"> + <template is="dom-if" if="{{checkType(cardType, 'link')}}"> <paper-fab mini icon="link" on-click="_handleDetailsClick"></paper-fab> @@ -162,7 +162,7 @@ type: Number, observer: "_changeHeight", }, - type:{ + cardType:{ type: String, value: "text" }, @@ -182,7 +182,7 @@ }, ready: function(){ - if(this.type == "text"){ + if(this.cardType == "text"){ this.$.content.style.backgroundColor = "#ffc"; } },