diff --git a/themes-default/slim/src/app.js b/themes-default/slim/src/app.js
index 1949353fa3..d050e9d734 100644
--- a/themes-default/slim/src/app.js
+++ b/themes-default/slim/src/app.js
@@ -10,6 +10,11 @@ import { App } from './components';
Vue.config.devtools = true;
Vue.config.performance = true;
+if (document.body.getAttribute('developer') === 'True') {
+ Vue.config.devtools = true;
+ Vue.config.performance = true;
+}
+
registerPlugins();
// @TODO: Remove this before v1.0.0
diff --git a/themes-default/slim/src/components/backstretch.vue b/themes-default/slim/src/components/backstretch.vue
index da04cac4de..090ddab61f 100644
--- a/themes-default/slim/src/components/backstretch.vue
+++ b/themes-default/slim/src/components/backstretch.vue
@@ -10,7 +10,8 @@ export default {
},
data() {
return {
- created: false
+ created: false,
+ wrapper: null
};
},
computed: {
@@ -53,21 +54,24 @@ export default {
$wrap.css('top', offset);
$wrap.css('opacity', opacity).fadeIn(500);
this.created = true;
+ this.wrapper = $wrap;
+ }
+ },
+ removeBackStretch() {
+ if (this.created) {
+ $.backstretch('destroy');
+ this.created = false;
}
}
},
destroyed() {
- if (this.created) {
- $.backstretch('destroy');
- }
+ this.removeBackStretch();
},
activated() {
this.setBackStretch();
},
deactivated() {
- if (this.created) {
- $.backstretch('destroy');
- }
+ this.removeBackStretch();
},
watch: {
opacity(newOpacity) {
diff --git a/themes-default/slim/src/components/display-show.vue b/themes-default/slim/src/components/display-show.vue
index 384214bd94..0251a42035 100644
--- a/themes-default/slim/src/components/display-show.vue
+++ b/themes-default/slim/src/components/display-show.vue
@@ -377,6 +377,7 @@
-
-
-
-
+
-