[Edit] Remove CreationService dep from SaveAs

This commit is contained in:
Alex M
2016-09-19 23:52:30 +03:00
parent abfabc85b5
commit 0c27a5f361
3 changed files with 1 additions and 4 deletions

View File

@@ -237,7 +237,6 @@ define([
"$injector", "$injector",
"policyService", "policyService",
"dialogService", "dialogService",
"creationService",
"copyService" "copyService"
], ],
"priority": "mandatory" "priority": "mandatory"

View File

@@ -42,7 +42,6 @@ define([
$injector, $injector,
policyService, policyService,
dialogService, dialogService,
creationService,
copyService, copyService,
context context
) { ) {
@@ -52,7 +51,6 @@ define([
}; };
this.policyService = policyService; this.policyService = policyService;
this.dialogService = dialogService; this.dialogService = dialogService;
this.creationService = creationService;
this.copyService = copyService; this.copyService = copyService;
} }

View File

@@ -116,7 +116,7 @@ define(
domainObject: mockDomainObject domainObject: mockDomainObject
}; };
action = new SaveAsAction(undefined, undefined, mockDialogService, undefined, mockCopyService, actionContext); action = new SaveAsAction(undefined, undefined, mockDialogService, mockCopyService, actionContext);
spyOn(action, "getObjectService"); spyOn(action, "getObjectService");
action.getObjectService.andReturn(mockObjectService); action.getObjectService.andReturn(mockObjectService);