Skip to content

Commit

Permalink
Make disableAddon disable the addon
Browse files Browse the repository at this point in the history
  • Loading branch information
brianjgeiger committed Feb 7, 2024
1 parent 1db72d7 commit 6f598ce
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/osf-components/addon/components/addon-card/component.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { action } from '@ember/object';
import Component from '@glimmer/component';
import { tracked } from '@glimmer/tracking';
import { taskFor } from 'ember-concurrency-ts';

import Provider from 'ember-osf-web/packages/addons-service/provider';
import AddonsServiceManagerComponent from 'osf-components/components/addons-service/manager/component';
Expand All @@ -19,9 +20,9 @@ export default class AddonsCardComponent extends Component<Args> {
}

@action
disableAddon() {
async disableAddon() {
const { addon } = this.args;
addon.disableProjectAddon();
await taskFor(addon.disableProjectAddon).perform();
}

get assetLogo() {
Expand Down

0 comments on commit 6f598ce

Please sign in to comment.