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:
Chelsea Shaw
2020-09-11 12:29:20 -05:00
committed by GitHub
parent cb52dec2a2
commit 2ea627aed3
11 changed files with 236 additions and 76 deletions

View File

@@ -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'}`,
});