Skip to content

Commit

Permalink
This is greate change so far
Browse files Browse the repository at this point in the history
  • Loading branch information
shijiezhou1 committed Aug 2, 2019
1 parent 32d4772 commit 045a448
Show file tree
Hide file tree
Showing 3 changed files with 77 additions and 68 deletions.
2 changes: 2 additions & 0 deletions app/components/article-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ export default Component.extend( {
* false: empty
*/
mdWhiteframe_10dp: false,

oneTimeIcon: 'favorite_border',
mouseEnter() {
this.set( 'mdWhiteframe_10dp', true );
},
Expand Down
5 changes: 3 additions & 2 deletions app/templates/components/article-list.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@
{{/card.content}}
</a>
{{#card.actions}}
{{#paper-button iconButton=true}}
{{paper-icon value.iconButtonList.favorite}}
{{!-- TODO making api call to add like--}}
{{#paper-button iconButton=true onClick=(action (mut oneTimeIcon) "favorite") }}
{{paper-icon oneTimeIcon}}
{{/paper-button}}
{{#paper-button iconButton=true}}
{{paper-icon value.iconButtonList.share}}
Expand Down
138 changes: 72 additions & 66 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 045a448

Please sign in to comment.