Skip to content

Commit

Permalink
feature: new PasswordRegExp config added, waiting for PasswordValidat…
Browse files Browse the repository at this point in the history
…ionText[WTEL-4702]
  • Loading branch information
VladimirBeria committed Jul 18, 2024
2 parents 9b7bb7c + 6743dae commit dc6551a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
@input="selectHandler"
/>
<wt-input
v-if="isExportSettingsFormatXls"
v-if="isExportSettingsFormatCSV"
:label="$t('objects.CSV.separator')"
:v="v$.itemInstance.separator"
:value="itemInstance.separator"
Expand Down Expand Up @@ -144,7 +144,7 @@ export default {
format: { required },
},
};
if (this.isExportSettingsFormatXls) {
if (this.isExportSettingsFormatCSV) {
defaultSelectConfig = {
itemInstance: {
format: { required },
Expand Down Expand Up @@ -176,6 +176,8 @@ export default {
return deepmerge(defaults, defaultNumberConfig);
case EngineSystemSettingName.ExportSettings:
return deepmerge(defaults, defaultSelectConfig);
case EngineSystemSettingName.ChatAiConnection:
return deepmerge(defaults, defaultStringConfig);
case EngineSystemSettingName.PasswordRegExp:
return deepmerge(defaults, defaultStringConfig);
case EngineSystemSettingName.PasswordValidationText:
Expand Down Expand Up @@ -204,8 +206,8 @@ export default {
displayedConfigurationType() {
return { [this.valueType]: true };
},
isExportSettingsFormatXls() {
return this.itemInstance?.format?.value === TypesExportedSettings.XLS;
isExportSettingsFormatCSV() {
return this.itemInstance?.format?.value === TypesExportedSettings.CSV;
},
},
methods: {
Expand Down Expand Up @@ -239,7 +241,7 @@ export default {
},
selectHandler(selectedValue) {
this.itemInstance.format = selectedValue;
if (!this.isExportSettingsFormatXls) {
if (!this.isExportSettingsFormatCSV) {
delete this.itemInstance.separator;
}
this.handleDefaultSelectConfigInput();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const ConfigurationValueTypes = Object.freeze({
[EngineSystemSettingName.ExportSettings]: 'select',
[EngineSystemSettingName.PasswordRegExp]: 'string',
[EngineSystemSettingName.PasswordValidationText]: 'string',
[EngineSystemSettingName.ChatAiConnection]: 'string',
},
);

Expand Down

0 comments on commit dc6551a

Please sign in to comment.