Commit 4b41290977ab9ebf220d8fe5283e213d02d7882a
1 parent
a69ff91e
paper-card-controllet update
Showing
1 changed file
with
6 additions
and
6 deletions
controllets/paper-card-controllet/paper-card-controllet.html
| ... | ... | @@ -109,25 +109,25 @@ |
| 109 | 109 | <span>{{cardTitle}}</span> |
| 110 | 110 | <!-- Adding icon based on card type --> |
| 111 | 111 | |
| 112 | - <template is="dom-if" if="{{checkType(type, 'text')}}"> | |
| 112 | + <template is="dom-if" if="{{checkType(cardType, 'text')}}"> | |
| 113 | 113 | |
| 114 | 114 | <paper-fab mini icon="create" on-click="_handleDetailsClick"></paper-fab> |
| 115 | 115 | |
| 116 | 116 | </template> |
| 117 | 117 | |
| 118 | - <template is="dom-if" if="{{checkType(type, 'image')}}"> | |
| 118 | + <template is="dom-if" if="{{checkType(cardType, 'image')}}"> | |
| 119 | 119 | |
| 120 | 120 | <paper-fab mini icon="perm-media" on-click="_handleDetailsClick"></paper-fab> |
| 121 | 121 | |
| 122 | 122 | </template> |
| 123 | 123 | |
| 124 | - <template is="dom-if" if="{{checkType(type, 'datalet')}}"> | |
| 124 | + <template is="dom-if" if="{{checkType(cardType, 'datalet')}}"> | |
| 125 | 125 | |
| 126 | 126 | <paper-fab mini icon="assessment" on-click="_handleDetailsClick"></paper-fab> |
| 127 | 127 | |
| 128 | 128 | </template> |
| 129 | 129 | |
| 130 | - <template is="dom-if" if="{{checkType(type, 'link')}}"> | |
| 130 | + <template is="dom-if" if="{{checkType(cardType, 'link')}}"> | |
| 131 | 131 | |
| 132 | 132 | <paper-fab mini icon="link" on-click="_handleDetailsClick"></paper-fab> |
| 133 | 133 | |
| ... | ... | @@ -162,7 +162,7 @@ |
| 162 | 162 | type: Number, |
| 163 | 163 | observer: "_changeHeight", |
| 164 | 164 | }, |
| 165 | - type:{ | |
| 165 | + cardType:{ | |
| 166 | 166 | type: String, |
| 167 | 167 | value: "text" |
| 168 | 168 | }, |
| ... | ... | @@ -182,7 +182,7 @@ |
| 182 | 182 | }, |
| 183 | 183 | |
| 184 | 184 | ready: function(){ |
| 185 | - if(this.type == "text"){ | |
| 185 | + if(this.cardType == "text"){ | |
| 186 | 186 | this.$.content.style.backgroundColor = "#ffc"; |
| 187 | 187 | } |
| 188 | 188 | }, | ... | ... |