Добавил возможность скрытия тулбара
This commit is contained in:
@@ -3,6 +3,7 @@ import Vue from 'vue';
|
||||
// initial state
|
||||
const state = {
|
||||
fullScreenActive: false,
|
||||
toolBarActive: true,
|
||||
openedBook: {},
|
||||
};
|
||||
|
||||
@@ -30,6 +31,9 @@ const mutations = {
|
||||
setFullScreenActive(state, value) {
|
||||
state.fullScreenActive = value;
|
||||
},
|
||||
setToolBarActive(state, value) {
|
||||
state.toolBarActive = value;
|
||||
},
|
||||
setOpenedBook(state, value) {
|
||||
Vue.set(state.openedBook, value.key, Object.assign({}, value, {touchTime: Date.now()}));
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user