feat: Add 'deleteHostSet' method to a target
'deleteHostSet' wraps a host set id in an array and uses 'deleteHostSets' method
This commit is contained in:
3 files changed
+44
-1
No files matched your search
@@ -59,7 +59,7 @@ export default class ScopesScopeProjectsProjectTargetsTargetHostSetsRoute extend
|
||||
@action
|
||||
async delete(target, hostSet) {
|
||||
try {
|
||||
await target.deleteHostSets([hostSet.id]);
|
||||
await target.deleteHostSet(hostSet);
|
||||
this.refresh();
|
||||
this.notify.success(this.intl.t('notify.delete-success'));
|
||||
this.transitionTo('scopes.scope.projects.project.targets.target.host-sets');
|
||||
|
||||
Reference in new issue
Block a user