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

Add textarea input for welcome messages

parent 1ab003bb
Branches
Tags
No related merge requests found
......@@ -41,6 +41,14 @@
:input-value="inputValue"
@change="update($event, settingGroup.group, settingGroup.key, settingParent, setting.key, setting.type, nested)"
/>
<el-input
v-if="textareaInput"
:value="inputValue"
:placeholder="setting.suggestions ? setting.suggestions[0] : null"
:data-search="setting.key || setting.group"
type="textarea"
class="input"
@input="update($event, settingGroup.group, settingGroup.key, settingParent, setting.key, setting.type, nested)"/>
<el-input
v-else-if="setting.type === 'string' ||
(Array.isArray(setting.type) && setting.type.includes('string') && setting.type.includes('atom'))"
......@@ -292,6 +300,9 @@ export default {
settings() {
return this.$store.state.settings.settings
},
textareaInput() {
return this.settingGroup.key === ':welcome' && this.setting.key === ':message'
},
updatedSettings() {
return this.$store.state.settings.updatedSettings
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment