Skip to content

Commit

Permalink
fixed problem on the paper-button and left the animation part for nex…
Browse files Browse the repository at this point in the history
…t version
  • Loading branch information
shijiezhou1 committed Aug 24, 2019
1 parent e45ef68 commit db8279e
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 6 deletions.
3 changes: 1 addition & 2 deletions app/templates/components/article-list.hbs
Expand Up @@ -11,12 +11,11 @@
{{/card.content}}
</a>
{{#card.actions}}
{{!-- 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 onClick=(route-action "updateLike" value.id)}}
{{paper-icon "favorite_border"}}
{{paper-icon oneTimeIcon}}
{{/paper-button}}
{{#paper-button iconButton=true}}
{{paper-icon value.iconButtonList.share}}
Expand Down
1 change: 1 addition & 0 deletions app/templates/components/sidebar-left.hbs
@@ -1,3 +1,4 @@
{{!-- TODO find out a easier way to do sorting category --}}
<div class="sidebar-index">
{{#paper-list}}
{{#paper-subheader}}Navigation{{/paper-subheader}}
Expand Down
2 changes: 0 additions & 2 deletions mirage/config.js
Expand Up @@ -47,9 +47,7 @@ export default function () {

//collection of data
this.get('/posts', function (schema, request) {
// console.log(request.queryParams);
// return schema.posts.all();
// console.log(schema.posts.all());
let perPage = parseInt(request.queryParams.per_page, 10);
let startPage = parseInt(request.queryParams.page, 10);
let pageCount = Math.ceil(schema.posts.all().length / perPage);
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "ember-blog",
"version": "0.0.0",
"version": "0.0.1",
"private": true,
"description": "Small description for ember-blog goes here",
"repository": "",
Expand Down

0 comments on commit db8279e

Please sign in to comment.