mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-02 03:27:54 +00:00
Ui/transform role edit updates transformations (#9910)
* Update transform role delete button to be ConfirmAction with dropdown * Set backend on fetched record so that it saves correctly * Update transformation after role transformations changed works * Clean up transform adapter * Add role to allowed_roles on added transformations and remove from removed transformations on role save, with flash message * Add backend to transform role model, and update serializer to add backend to paginated results * Clean up error message handling * Connect backend to transform roles list response * Capabilities on transform roles is correct * Fix cancel button on transform role edit location * Fix model path * Remove unnecessary tab param from controller * Add backend to transform model
This commit is contained in:
@@ -90,9 +90,12 @@ const Model = DS.Model.extend({
|
||||
transformFieldAttrs: computed('transformAttrs', function() {
|
||||
return expandAttributeMeta(this, this.get('transformAttrs'));
|
||||
}),
|
||||
|
||||
backend: attr('string', {
|
||||
readOnly: true,
|
||||
}),
|
||||
});
|
||||
|
||||
export default attachCapabilities(Model, {
|
||||
// TODO: Update to dynamic backend name
|
||||
updatePath: apiPath`transform/transformation/${'id'}`,
|
||||
updatePath: apiPath`${'backend'}/transformation/${'id'}`,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user