chore: 🤖 change method names
This commit is contained in:
10 files changed
+31
-34
No files matched your search
@@ -77,7 +77,7 @@ export default class ScopesScopeTargetsTargetAddCredentialSourcesRoute extends R
|
||||
@notifyError(({ message }) => message, { catch: true })
|
||||
@notifySuccess('notifications.add-success')
|
||||
async save(target, credentialLibraryIDs) {
|
||||
await target.addCredentialLibraries(credentialLibraryIDs);
|
||||
await target.addCredentialSources(credentialLibraryIDs);
|
||||
this.replaceWith('scopes.scope.targets.target.credential-sources');
|
||||
}
|
||||
|
||||
|
||||
@@ -71,7 +71,7 @@ export default class ScopesScopeTargetsTargetAddHostSourcesRoute extends Route {
|
||||
@notifyError(({ message }) => message, { catch: true })
|
||||
@notifySuccess('notifications.add-success')
|
||||
async save(target, hostSetIDs) {
|
||||
await target.addHostSets(hostSetIDs);
|
||||
await target.addHostSources(hostSetIDs);
|
||||
this.replaceWith('scopes.scope.targets.target.host-sources');
|
||||
}
|
||||
|
||||
|
||||
@@ -44,8 +44,8 @@ export default class ScopesScopeTargetsTargetCredentialSourcesRoute extends Rout
|
||||
@confirm('questions.remove-confirm')
|
||||
@notifyError(({ message }) => message, { catch: true })
|
||||
@notifySuccess('notifications.remove-success')
|
||||
async removeCredentialLibrary(target, credentialLibrary) {
|
||||
await target.removeCredentialLibrary(credentialLibrary.id);
|
||||
async removeCredentialSource(target, credentialLibrary) {
|
||||
await target.removeCredentialSource(credentialLibrary.id);
|
||||
this.refresh();
|
||||
}
|
||||
}
|
||||
@@ -58,8 +58,8 @@ export default class ScopesScopeTargetsTargetHostSourcesRoute extends Route {
|
||||
@confirm('questions.remove-confirm')
|
||||
@notifyError(({ message }) => message, { catch: true })
|
||||
@notifySuccess('notifications.remove-success')
|
||||
async removeHostSet(target, hostSet) {
|
||||
await target.removeHostSet(hostSet.id);
|
||||
async removeHostSource(target, hostSet) {
|
||||
await target.removeHostSource(hostSet.id);
|
||||
this.refresh();
|
||||
}
|
||||
}
|
||||
@@ -56,7 +56,7 @@
|
||||
{{on
|
||||
'click'
|
||||
(route-action
|
||||
'removeCredentialLibrary' @model credentialLibrary
|
||||
'removeCredentialSource' @model credentialLibrary
|
||||
)
|
||||
}}
|
||||
>
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
@style='danger'
|
||||
{{on
|
||||
'click'
|
||||
(route-action 'removeHostSet' @model hostSet.model)
|
||||
(route-action 'removeHostSource' @model hostSet.model)
|
||||
}}
|
||||
>
|
||||
{{t 'actions.remove'}}
|
||||
|
||||
@@ -35,7 +35,7 @@ module('Acceptance | targets | credential-libraries', function (hooks) {
|
||||
target: null,
|
||||
credentialLibraries: null,
|
||||
credentialLibrary: null,
|
||||
addCredentialLibraries: null,
|
||||
addCredentialSources: null,
|
||||
};
|
||||
|
||||
hooks.beforeEach(function () {
|
||||
|
||||
Reference in new issue
Block a user