-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
feat(ui): Add option to generate read / write token #13601
Conversation
de20bf4
to
2574774
Compare
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.
just a q here and there
</Form.Element> | ||
<Form.Element label=""> | ||
<GetResources resource={ResourceTypes.Buckets}> | ||
<SpinnerContainer |
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.
I think GetResources should handle loading state for you?
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.
ah youre so right!
|
||
private handleSelectBucket( | ||
bucketName: string, | ||
bucketNames: string[] |
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.
nit: maybe this var could be called selectedBuckets
? Might this function be better as a util?
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.
yea ill rename and make util
} | ||
} | ||
|
||
export default SelectableBucket |
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.
maybe.. delectableBucket?
@@ -38,7 +39,7 @@ class TokenRow extends PureComponent<Props> { | |||
<EditableName | |||
onUpdate={this.handleUpdateName} | |||
name={description} | |||
noNameString="DEFAULT_BUCKET_NAME" | |||
noNameString={DEFAULT_TOKEN_NAME} |
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.
ooh nice!
ui/src/dashboards/constants/index.ts
Outdated
@@ -90,6 +90,7 @@ type NewDefaultDashboard = Pick< | |||
export const DEFAULT_CELL_NAME = 'Name this Cell' | |||
export const DEFAULT_DASHBOARD_NAME = 'Name this Dashboard' | |||
export const DEFAULT_BUCKET_NAME = 'Name this Bucket' | |||
export const DEFAULT_TOKEN_NAME = 'Describe this Token' |
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.
why describe here instead of Name this token
?
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.
Tokens dont have names, just descriptions. the variable should be renamed to reflect that
2574774
to
d0f1891
Compare
e3acbf0
to
d99a1e1
Compare
d99a1e1
to
62f2d63
Compare
Closes #12848
Briefly describe your proposed changes: