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,25 +109,25 @@ | ||
109 | <span>{{cardTitle}}</span> | 109 | <span>{{cardTitle}}</span> |
110 | <!-- Adding icon based on card type --> | 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 | <paper-fab mini icon="create" on-click="_handleDetailsClick"></paper-fab> | 114 | <paper-fab mini icon="create" on-click="_handleDetailsClick"></paper-fab> |
115 | 115 | ||
116 | </template> | 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 | <paper-fab mini icon="perm-media" on-click="_handleDetailsClick"></paper-fab> | 120 | <paper-fab mini icon="perm-media" on-click="_handleDetailsClick"></paper-fab> |
121 | 121 | ||
122 | </template> | 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 | <paper-fab mini icon="assessment" on-click="_handleDetailsClick"></paper-fab> | 126 | <paper-fab mini icon="assessment" on-click="_handleDetailsClick"></paper-fab> |
127 | 127 | ||
128 | </template> | 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 | <paper-fab mini icon="link" on-click="_handleDetailsClick"></paper-fab> | 132 | <paper-fab mini icon="link" on-click="_handleDetailsClick"></paper-fab> |
133 | 133 | ||
@@ -162,7 +162,7 @@ | @@ -162,7 +162,7 @@ | ||
162 | type: Number, | 162 | type: Number, |
163 | observer: "_changeHeight", | 163 | observer: "_changeHeight", |
164 | }, | 164 | }, |
165 | - type:{ | 165 | + cardType:{ |
166 | type: String, | 166 | type: String, |
167 | value: "text" | 167 | value: "text" |
168 | }, | 168 | }, |
@@ -182,7 +182,7 @@ | @@ -182,7 +182,7 @@ | ||
182 | }, | 182 | }, |
183 | 183 | ||
184 | ready: function(){ | 184 | ready: function(){ |
185 | - if(this.type == "text"){ | 185 | + if(this.cardType == "text"){ |
186 | this.$.content.style.backgroundColor = "#ffc"; | 186 | this.$.content.style.backgroundColor = "#ffc"; |
187 | } | 187 | } |
188 | }, | 188 | }, |