Skip to content

Commit

Permalink
can now upvote and beautiful feedbacks have been implemented to notif…
Browse files Browse the repository at this point in the history
…y users about upvote
  • Loading branch information
TimothyMee committed May 5, 2018
1 parent 5082f46 commit 79b030b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion public/js/app.js
Expand Up @@ -118738,7 +118738,7 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
},
upvote: function upvote(news) {
this.loading = true;
this.api.vote(this.user.username, news.author, news.permlink, 1000, function (err, res) {
this.api.vote(this.user.username, news.author, news.permlink, 10000, function (err, res) {
if (err) {
this.$notify({ type: 'error', text: '<span style="color: white">Couldn\'t Upvote now, <br> Try again later </span>', speed: 400 });
}
Expand Down
2 changes: 1 addition & 1 deletion resources/assets/js/components/v1/Home.vue
Expand Up @@ -434,7 +434,7 @@
upvote(news){
this.loading = true;
this.api.vote(this.user.username, news.author, news.permlink, 1000, function (err, res) {
this.api.vote(this.user.username, news.author, news.permlink, 10000, function (err, res) {
if(err){
this.$notify({type: 'error', text: '<span style="color: white">Couldn\'t Upvote now, <br> Try again later </span>', speed:400});
}
Expand Down

0 comments on commit 79b030b

Please sign in to comment.