-
Notifications
You must be signed in to change notification settings - Fork 44
Add provider deletion confirmation #1144
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
Conversation
src/components/AdminSettings.vue
Outdated
| {{ t('user_oidc', 'Cancel') }} | ||
| </NcButton> | ||
| <NcButton | ||
| variant="warning" |
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 the warning variant rather than error? The red color makes more sense to me, personally, even if it's not technically an "error".
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.
Let's go with error.
Signed-off-by: Julien Veyssier <[email protected]>
Signed-off-by: Julien Veyssier <[email protected]>
1e8bb4a to
e9d602f
Compare
| if (this.providerToDelete) { | ||
| return t('user_oidc', 'Are you sure you want to delete the provider "{providerName}"?', { providerName: this.providerToDelete.identifier }) | ||
| } | ||
| return '' |
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.
| if (this.providerToDelete) { | |
| return t('user_oidc', 'Are you sure you want to delete the provider "{providerName}"?', { providerName: this.providerToDelete.identifier }) | |
| } | |
| return '' | |
| if (!this.providerToDelete) { | |
| return '' | |
| } | |
| return t('user_oidc', 'Are you sure you want to delete the provider "{providerName}"?', { providerName: this.providerToDelete.identifier }) |
a small refactor to reduce the line length, but it's up to you, LGTM otherwise
closes #1142
Display a dialog when clicking on the delete button of a provider.
Also fix the prop passed to the edition NcModal to avoid displaying the close button in it.