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:
Susmitha Girumala committed 2020-08-27 12:59:26 -04:00
1 parent 54008c8977
commit f97eebe1b8
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');