Problem/Motivation
It's currently only possible to delete a sharepoint mapping by manually emptying all its configuration values, both for content type and webform modes. I noticed there are 2 delete routes present in sharepoint_connector.routing.yml, but they point to their respective edit forms. Also - they aren't actually used anywhere.
It would be nice if the "delete" option could be added to each sharepoint mapping, in the "operations" column.
Steps to reproduce
For webform sharepoint mappings:
- Navigate to /admin/config/sharepoint_connector/settings/webforms
- Add a sharepoint mapping for any webform
- Navigate back to /admin/config/sharepoint_connector/settings/webforms
- Only an edit link is available in the operations column, would be great if there was a dropdown where "Delete" is also available
Proposed resolution
Provide 2 delete forms that extend from ConfirmFormBase: one for sharepoint webform mapping, and one for sharepoint content type mapping. On delete confirmation, remove the entire sharepoint_connector.content_types.* config entry.
Issue fork sharepoint_connector-3609865
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
robindh commentedAdded a merge request which supports this delete functionality via an extra link in the operations column, as described in the issue summary.
Also updating the issue description to use "mapping" instead of "link" for clarity
Comment #5
robbymo commentedThank you for the contribution, robindh! I have reviewed the updates and merged in the MR. This has been added into the latest version (1.0.7).