mirror of
https://github.com/kihashi/stardew_community_checklist.git
synced 2025-10-19 08:03:17 +00:00
Merge branch 'master' into gh-pages
This commit is contained in:
commit
7007185798
8
main.js
8
main.js
@ -37,11 +37,11 @@ var v = new Vue({
|
|||||||
}
|
}
|
||||||
hideCompleted = localStorage.getItem('hideCompleted');
|
hideCompleted = localStorage.getItem('hideCompleted');
|
||||||
if(hideCompleted !== null && hideCompleted !== ""){
|
if(hideCompleted !== null && hideCompleted !== ""){
|
||||||
this.hideCompleted = hideCompleted;
|
this.hideCompleted = JSON.parse(hideCompleted);
|
||||||
}
|
}
|
||||||
hideSpoilers = localStorage.getItem('hideSpoilers');
|
hideSpoilers = localStorage.getItem('hideSpoilers');
|
||||||
if(hideSpoilers !== null && hideSpoilers !== ""){
|
if(hideSpoilers !== null && hideSpoilers !== ""){
|
||||||
this.hideSpoilers = hideSpoilers;
|
this.hideSpoilers = JSON.parse(hideSpoilers);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@ -115,11 +115,11 @@ var v = new Vue({
|
|||||||
},
|
},
|
||||||
toggleHideCompleted: function(){
|
toggleHideCompleted: function(){
|
||||||
this.hideCompleted = !this.hideCompleted;
|
this.hideCompleted = !this.hideCompleted;
|
||||||
localStorage.setItem('hideCompleted', this.hideCompleted);
|
localStorage.setItem('hideCompleted', JSON.stringify(this.hideCompleted));
|
||||||
},
|
},
|
||||||
toggleHideSpoilers: function(){
|
toggleHideSpoilers: function(){
|
||||||
this.hideSpoilers = !this.hideSpoilers;
|
this.hideSpoilers = !this.hideSpoilers;
|
||||||
localStorage.setItem('hideSpoilers', this.hideSpoilers);
|
localStorage.setItem('hideSpoilers', JSON.stringify(this.hideSpoilers));
|
||||||
},
|
},
|
||||||
addItemToBundle: function(bundleId, itemId, itemPosition){
|
addItemToBundle: function(bundleId, itemId, itemPosition){
|
||||||
this.user_data[bundleId].push({item: itemId, position: itemPosition});
|
this.user_data[bundleId].push({item: itemId, position: itemPosition});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user