Migrated progress bar and progress editor to vuex.

This commit is contained in:
krzysiej
2022-06-14 15:19:21 +02:00
parent 8dbd63478d
commit 5350c5c46b
10 changed files with 131 additions and 56 deletions

View File

@@ -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>