Skip to content
Snippets Groups Projects
Commit d0f73f42 authored by Angelina Filippova's avatar Angelina Filippova
Browse files

Update rendering and data flow for Editor on Other tab

parent cad7ad83
Branches
No related tags found
No related merge requests found
<template>
<div v-if="!loading" :class="isSidebarOpen" class="form-container">
<editor-input :content="termsOfServicesContent" :name="'terms-of-service'" @input="handleEditorUpdate"/>
<editor-input v-model="termsOfServicesContent" :name="'terms-of-service'" @input="handleEditorUpdate"/>
<el-form :model="mimeTypesData" :label-position="labelPosition" :label-width="labelWidth">
<setting :setting-group="mimeTypes" :data="mimeTypesData"/>
</el-form>
......@@ -34,7 +34,7 @@ export default {
components: { EditorInput, Setting },
data() {
return {
editorContent: ''
termsOfServices: ''
}
},
computed: {
......@@ -89,8 +89,13 @@ export default {
remoteIpData() {
return _.get(this.settings.settings, [':pleroma', 'Pleroma.Web.Plugs.RemoteIp']) || {}
},
termsOfServicesContent() {
return this.$store.state.settings.termsOfServices
termsOfServicesContent: {
get() {
return this.$store.state.settings.termsOfServices
},
set(content) {
this.termsOfServices = content
}
}
},
async mounted() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment