Migrated progress bar and progress editor to vuex.
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
<template>
|
||||
<div>
|
||||
<h1 v-if="searchTitle" v-html="'Book search: '+searchTitle"></h1>
|
||||
<h1 v-if="isSearching" v-html="'Book search: '+searchTitle"></h1>
|
||||
<h1 v-else>Book list</h1>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {mapState} from "vuex";
|
||||
import {mapGetters, mapState} from "vuex";
|
||||
|
||||
export default {
|
||||
name: 'BookListingHeader',
|
||||
@@ -17,6 +17,7 @@ export default {
|
||||
},
|
||||
computed: {
|
||||
...mapState('booksmodule', ['searchTitle']),
|
||||
...mapGetters('booksmodule', ['isSearching'])
|
||||
},
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user