diff --git a/src/client/app/common/views/components/profile-editor.vue b/src/client/app/common/views/components/profile-editor.vue index d04ec56b00..8bb1841dc1 100644 --- a/src/client/app/common/views/components/profile-editor.vue +++ b/src/client/app/common/views/components/profile-editor.vue @@ -2,7 +2,11 @@
{{ $t('title') }}
-
+
+
+ +
+ {{ $t('name') }} @@ -97,6 +101,14 @@ export default Vue.extend({ get() { return this.$store.state.i.settings.alwaysMarkNsfw; }, set(value) { this.$root.api('i/update', { alwaysMarkNsfw: value }); } }, + + bannerStyle(): any { + if (this.$store.state.i.bannerUrl == null) return {}; + return { + backgroundColor: this.$store.state.i.bannerColor && this.$store.state.i.bannerColor.length == 3 ? `rgb(${ this.$store.state.i.bannerColor.join(',') })` : null, + backgroundImage: `url(${ this.$store.state.i.bannerUrl })` + }; + }, }, created() { @@ -190,3 +202,26 @@ export default Vue.extend({ } }); + +