diff --git a/src/views/settings/components/Inputs.vue b/src/views/settings/components/Inputs.vue index 0639994e..d6a1a475 100644 --- a/src/views/settings/components/Inputs.vue +++ b/src/views/settings/components/Inputs.vue @@ -112,6 +112,7 @@ + @@ -138,6 +139,7 @@ import { RateLimitInput, RegInvitesInput, SelectInputWithReducedLabels, + SenderInput, SpecificMultipleSelect } from './inputComponents' import { getBooleanValue, processNested } from '@/store/modules/normalizers' import _ from 'lodash' @@ -156,6 +158,7 @@ export default { RateLimitInput, RegInvitesInput, SelectInputWithReducedLabels, + SenderInput, SpecificMultipleSelect }, props: { @@ -357,6 +360,9 @@ export default { renderSingleSelect(type) { return !this.reducedSelects && (type === 'module' || (type.includes('atom') && type.includes('dropdown'))) }, + senderInput({ key, type }) { + return Array.isArray(type) && type.includes('string') && type.includes('tuple') && key === ':sender' + }, update(value, group, key, parents, input, type, nested) { const updatedValue = this.renderSingleSelect(type) ? getBooleanValue(value) : value nested diff --git a/src/views/settings/components/inputComponents/SenderInput.vue b/src/views/settings/components/inputComponents/SenderInput.vue new file mode 100644 index 00000000..3e303c8a --- /dev/null +++ b/src/views/settings/components/inputComponents/SenderInput.vue @@ -0,0 +1,98 @@ + + + + + diff --git a/src/views/settings/styles/main.scss b/src/views/settings/styles/main.scss index ce6712ae..383761cf 100644 --- a/src/views/settings/styles/main.scss +++ b/src/views/settings/styles/main.scss @@ -46,6 +46,10 @@ .el-tabs__header { z-index: 2002; } + .email-address-input { + width: 50%; + margin-right: 10px; + } .esshd-list { margin: 0; } @@ -175,6 +179,9 @@ width: 30%; margin-right: 8px } + .nickname-input { + width: 50%; + } .no-top-margin { margin-top: 0; p { @@ -254,6 +261,12 @@ margin-left: 8px; margin-right: 10px } + .sender-input { + display: flex; + align-items: center; + margin-bottom: 10px; + width: 100%; + } .scale-input { width: 47%; margin: 0 1% 5px 0