KV Download Value Stringify Toggle (#23747)

* adds stringify toggle to masked-input download modal

* updates stringify toggle copy and adds a test

* adds changelog entry
This commit is contained in:
Jordan Reimer
2023-10-20 08:56:14 -06:00
committed by GitHub
parent 13523b5a69
commit 01d5d1dc3a
4 changed files with 55 additions and 1 deletions

View File

@@ -35,6 +35,7 @@ export default class MaskedInputComponent extends Component {
textareaId = 'textarea-' + guidFor(this);
@tracked showValue = false;
@tracked modalOpen = false;
@tracked stringifyDownload = false;
constructor() {
super(...arguments);
@@ -62,7 +63,12 @@ export default class MaskedInputComponent extends Component {
this.args.onKeyUp(name, value);
}
}
@action toggleMask() {
this.showValue = !this.showValue;
}
@action toggleStringifyDownload(event) {
this.stringifyDownload = event.target.checked;
}
}