CE-3261: Refactor template details
Note: This depends on BE ce-template-backend!215 (merged)
This is not a total refactor of template details view, goal for this ticket was moving admin related stuff from template details component to admin component.
When touching related files, I did some minor clean-up and migration to typescript and rtk.
In this MR (in a separate commit) is a fix for CE-2802
Follow ups:
- Perhaps rearrange this view a bit. Archive and Delete does not have to be in accordions that is default open and not closable.
- All components have functionality that needs to trigger an update of template, this might benefit from using some of the
fixedCacheKey
functionality provided by redux-rtk, would be fun to explore this. - There is also some inconsistency on which buttons that are disabled when an action is performed.
Edited by Johanna Szepanski