-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mask obfuscated Secret sync create/edit fields #27348
Changes from 7 commits
a4fc962
87b9b4b
e962667
9449204
9a1b545
98b04db
d0912a6
7de21b2
455098f
00944a9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
```release-note:improvement | ||
ui: Mask obfuscated fields when creating/editing a Secrets sync destination. | ||
``` |
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -247,7 +247,7 @@ | |
<MaskedInput | ||
@name={{@attr.name}} | ||
@value={{or (get @model this.valuePath) @attr.options.defaultValue}} | ||
@allowCopy="true" | ||
@allowCopy={{if @attr.options.noCopy false true}} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this should default to true. not ideal (rather it default to false) but working with an old pattern and trying to keep backporting/scope simple. |
||
@onChange={{this.setAndBroadcast}} | ||
@onKeyUp={{@onKeyUp}} | ||
/> | ||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -32,7 +32,7 @@ | |||||
aria-label={{or @name "masked input"}} | ||||||
{{on "change" this.onChange}} | ||||||
{{on "keyup" (fn this.handleKeyUp @name)}} | ||||||
data-test-textarea | ||||||
data-test-textarea={{or @name ""}} | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we don't need or if the default is an empty string
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I thought that as well, but without the conditional it broke any test selector that didn't pass in a name. I suspect because it comes in as undefined? |
||||||
/> | ||||||
{{/if}} | ||||||
{{#if @allowCopy}} | ||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CREATE:
EDIT: