Skip to content

Commit

Permalink
Fix home tabs (#4764)
Browse files Browse the repository at this point in the history
* Fix home tabs

* Update CHANGELOG.md
  • Loading branch information
sharkykh committed Jul 27, 2018
1 parent a0b6585 commit a8bb16f
Show file tree
Hide file tree
Showing 4 changed files with 78 additions and 81 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
## Unreleased

#### Fixes
- Fixed tabs on home page when using the split home layout ([#4764](https://github.com/pymedusa/Medusa/pull/4764))

-----

## 0.2.7 (2018-07-27)
Expand Down
52 changes: 25 additions & 27 deletions themes-default/slim/views/home.mako
Original file line number Diff line number Diff line change
Expand Up @@ -11,35 +11,33 @@
<%block name="scripts">
<script>
window.app = {};
const startVue = () => {
window.app = new Vue({
store,
el: '#vue-wrap',
metaInfo: {
title: 'Home'
},
data() {
return {
header: 'Show List'
};
},
computed: Object.assign({
layout: {
get() {
const { config } = this;
return config.layout.home;
},
set(layout) {
const { $store } = this;
const page = 'home';
$store.dispatch('setLayout', { page, layout });
}
window.app = new Vue({
store,
el: '#vue-wrap',
metaInfo: {
title: 'Home'
},
data() {
return {
header: 'Show List'
};
},
computed: Object.assign({
layout: {
get() {
const { config } = this;
return config.layout.home;
},
set(layout) {
const { $store } = this;
const page = 'home';
$store.dispatch('setLayout', { page, layout });
}
}),
mounted() {
}
});
};
}),
mounted() {
}
});
</script>
</%block>
<%block name="metas">
Expand Down
52 changes: 25 additions & 27 deletions themes/dark/templates/home.mako
Original file line number Diff line number Diff line change
Expand Up @@ -11,35 +11,33 @@
<%block name="scripts">
<script>
window.app = {};
const startVue = () => {
window.app = new Vue({
store,
el: '#vue-wrap',
metaInfo: {
title: 'Home'
},
data() {
return {
header: 'Show List'
};
},
computed: Object.assign({
layout: {
get() {
const { config } = this;
return config.layout.home;
},
set(layout) {
const { $store } = this;
const page = 'home';
$store.dispatch('setLayout', { page, layout });
}
window.app = new Vue({
store,
el: '#vue-wrap',
metaInfo: {
title: 'Home'
},
data() {
return {
header: 'Show List'
};
},
computed: Object.assign({
layout: {
get() {
const { config } = this;
return config.layout.home;
},
set(layout) {
const { $store } = this;
const page = 'home';
$store.dispatch('setLayout', { page, layout });
}
}),
mounted() {
}
});
};
}),
mounted() {
}
});
</script>
</%block>
<%block name="metas">
Expand Down
52 changes: 25 additions & 27 deletions themes/light/templates/home.mako
Original file line number Diff line number Diff line change
Expand Up @@ -11,35 +11,33 @@
<%block name="scripts">
<script>
window.app = {};
const startVue = () => {
window.app = new Vue({
store,
el: '#vue-wrap',
metaInfo: {
title: 'Home'
},
data() {
return {
header: 'Show List'
};
},
computed: Object.assign({
layout: {
get() {
const { config } = this;
return config.layout.home;
},
set(layout) {
const { $store } = this;
const page = 'home';
$store.dispatch('setLayout', { page, layout });
}
window.app = new Vue({
store,
el: '#vue-wrap',
metaInfo: {
title: 'Home'
},
data() {
return {
header: 'Show List'
};
},
computed: Object.assign({
layout: {
get() {
const { config } = this;
return config.layout.home;
},
set(layout) {
const { $store } = this;
const page = 'home';
$store.dispatch('setLayout', { page, layout });
}
}),
mounted() {
}
});
};
}),
mounted() {
}
});
</script>
</%block>
<%block name="metas">
Expand Down

0 comments on commit a8bb16f

Please sign in to comment.