#286 Fixed issues with composition not surviving through create wizard
This commit is contained in:
@@ -150,7 +150,7 @@
|
||||
"provides": "actionService",
|
||||
"type": "provider",
|
||||
"implementation": "creation/CreateActionProvider.js",
|
||||
"depends": [ "$injector", "$q", "typeService",
|
||||
"depends": ["$q", "typeService",
|
||||
"navigationService"]
|
||||
},
|
||||
{
|
||||
|
||||
@@ -51,7 +51,7 @@ define(
|
||||
* which handles changes in navigation. It allows the object
|
||||
* being browsed/edited to be set.
|
||||
*/
|
||||
function CreateAction(type, parent, context, $injector, $q, navigationService) {
|
||||
function CreateAction(type, parent, context, $q, navigationService) {
|
||||
this.metadata = {
|
||||
key: 'create',
|
||||
glyph: type.getGlyph(),
|
||||
|
||||
@@ -46,10 +46,9 @@ define(
|
||||
* introduced in this bundle), responsible for handling actual
|
||||
* object creation.
|
||||
*/
|
||||
function CreateActionProvider($injector, $q, typeService, navigationService) {
|
||||
function CreateActionProvider($q, typeService, navigationService) {
|
||||
this.typeService = typeService;
|
||||
this.navigationService = navigationService;
|
||||
this.$injector = $injector;
|
||||
this.$q = $q;
|
||||
}
|
||||
|
||||
@@ -75,7 +74,6 @@ define(
|
||||
type,
|
||||
destination,
|
||||
context,
|
||||
self.$injector,
|
||||
self.$q,
|
||||
self.navigationService
|
||||
);
|
||||
|
||||
@@ -34,9 +34,9 @@ define(
|
||||
* @memberof platform/commonUI/browse
|
||||
* @constructor
|
||||
*/
|
||||
function CreateWizard(type, parent, policyService) {
|
||||
function CreateWizard(type, parent, policyService, initialModel) {
|
||||
this.type = type;
|
||||
this.model = type.getInitialModel();
|
||||
this.model = initialModel || type.getInitialModel();
|
||||
this.properties = type.getProperties();
|
||||
this.parent = parent;
|
||||
this.policyService = policyService;
|
||||
|
||||
Reference in New Issue
Block a user