-
Notifications
You must be signed in to change notification settings - Fork 8.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
Simplify deleting spaces #99960
Simplify deleting spaces #99960
Conversation
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.
Tested locally -- LGTM with one nit below
x-pack/plugins/spaces/public/management/spaces_management_app.tsx
Outdated
Show resolved
Hide resolved
'xpack.spaces.management.confirmDeleteModal.confirmButton', | ||
{ | ||
defaultMessage: | ||
'{isLoading, select, true{Deleting space and all contents…} other{Delete space and all contents}}', |
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.
You fancy! 🏅
|
||
import type { InjectedIntl } from '@kbn/i18n/react'; | ||
import { FormattedMessage, injectI18n } from '@kbn/i18n/react'; | ||
import { EuiCallOut, EuiConfirmModal, EuiSpacer, EuiText } from '@elastic/eui'; |
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.
Co-authored-by: Larry Gregory <[email protected]>
@elasticmachine merge upstream |
💚 Build SucceededMetrics [docs]Module Count
Async chunks
Page load bundle
Unknown metric groupsReferences to deprecated APIs
History
To update your PR or re-run it, just comment with: |
💔 Backport failed
To backport manually run: |
Pinging @elastic/kibana-security (Team:Security) |
* Simplify deleting spaces * Fixed i18n * Fix functional tests * Update x-pack/plugins/spaces/public/management/spaces_management_app.tsx Co-authored-by: Larry Gregory <[email protected]> * Fix snapshots Co-authored-by: Larry Gregory <[email protected]> Co-authored-by: Kibana Machine <[email protected]> # Conflicts: # x-pack/plugins/spaces/public/management/spaces_management_app.tsx
* Simplify deleting spaces * Fixed i18n * Fix functional tests * Update x-pack/plugins/spaces/public/management/spaces_management_app.tsx Co-authored-by: Larry Gregory <[email protected]> * Fix snapshots Co-authored-by: Larry Gregory <[email protected]> Co-authored-by: Kibana Machine <[email protected]> # Conflicts: # x-pack/plugins/spaces/public/management/spaces_management_app.tsx
* Simplify deleting spaces * Fixed i18n * Fix functional tests * Update x-pack/plugins/spaces/public/management/spaces_management_app.tsx Co-authored-by: Larry Gregory <[email protected]> * Fix snapshots Co-authored-by: Larry Gregory <[email protected]> Co-authored-by: Kibana Machine <[email protected]>
Resolves #49856
Summary
This PR makes it easier to delete spaces by removing the requirement to type the name of the space in the confirmation modal. This caused issues when the space contained double spaces and was cumbersome for long space names. We already ask the user to confirm if they want to proceed which gives enough protection.
Deleting space confirmation modal
Edge case when deleting current space
Checklist
Delete any items that are not applicable to this PR.