Skip to content
This repository has been archived by the owner on Sep 1, 2023. It is now read-only.

Commit

Permalink
refactor(tabs): removed unused activateId state
Browse files Browse the repository at this point in the history
  • Loading branch information
herteleo committed Apr 20, 2019
1 parent 2718f84 commit 3f2b3bd
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
1 change: 0 additions & 1 deletion src/components/TabMain.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ export default {
watch: {
isActive(isActive) {
if (isActive) {
this.$store.commit('Tabs/activateId', this.item.id);
this.webview.focus();
}
},
Expand Down
6 changes: 0 additions & 6 deletions src/store/modules/Tabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ const db = new Connection({
export default {
namespaced: true,
state: {
activeId: 0,
dbUpdated: Date.now(),
},
getters: {
Expand All @@ -34,10 +33,6 @@ export default {
},
},
mutations: {
activateId(state, id) {
state.activeId = id;
state.dbUpdated = Date.now();
},
create(state, tab) {
/*
the actual tab creation is processed in action
Expand All @@ -62,7 +57,6 @@ export default {
.remove(i => i === item.id)
.write();

state.activateId = 0;
state.dbUpdated = Date.now();
},
setSorting(state, items) {
Expand Down

0 comments on commit 3f2b3bd

Please sign in to comment.