Skip to content

Commit

Permalink
remove even more superfluous properties from main App
Browse files Browse the repository at this point in the history
  • Loading branch information
pixeldesu committed Jan 23, 2020
1 parent c4e3993 commit 4c8e0a6
Showing 1 changed file with 4 additions and 32 deletions.
36 changes: 4 additions & 32 deletions src/App.vue
Expand Up @@ -27,38 +27,10 @@ export default {
FeedContainer,
},
computed: {
drawer: {
get() {
return this.$store.state.drawer;
},
set(value) {
if (this.$store.state.drawer !== value) {
this.$store.dispatch('toggleDrawer');
}
},
},
searchQuery: {
get() {
return this.$store.state.searchQuery;
},
set(value) {
this.$store.dispatch('search', value);
},
},
selectedChannel: {
get() {
return this.$store.state.selectedChannel;
},
set(value) {
this.$store.dispatch('selectChannel', value);
},
},
...mapState([
'loading',
'videos',
]),
},
computed: mapState([
'loading',
'videos',
]),
async created() {
this.$store.dispatch('getChannels');
Expand Down

0 comments on commit 4c8e0a6

Please sign in to comment.