Skip to content

Commit

Permalink
Added program name to subscribe and unsubscribe notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
nickpalladino committed Feb 2, 2023
1 parent e358931 commit b9cbbb0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/program/SubscribeOntologyConfiguration.vue
Original file line number Diff line number Diff line change
Expand Up @@ -141,15 +141,15 @@ export default class SubscribeOntologyConfiguration extends ProgramsBase {
// Loading wheel show
this.subscribeProcessing = true;
await SharedOntologyService.subscribeOntology(this.activeProgram!.id!, this.selectedOntology.id);
this.$emit('show-success-notification', `Successful subscribed to ontology`);
await this.getSharedOntologyData();
this.$emit('show-success-notification', `Successfully subscribed to ` + this.subscribedOntology!.programName + `'s ontology` );
this.$emit('subscription-change');
} catch (e) {
// Check error statuses, show errors
this.$emit('show-error-notification', e);
} finally {
// Loading wheel hide
this.subscribeProcessing = false;
this.getSharedOntologyData();
}
}
Expand All @@ -158,16 +158,16 @@ export default class SubscribeOntologyConfiguration extends ProgramsBase {
// Loading wheel show
this.subscribeProcessing = true;
await SharedOntologyService.unsubscribeOntology(this.activeProgram!.id!, subscribedProgramId);
this.$emit('show-success-notification', `Successfully unsubscribed from ` + this.subscribedOntology!.programName + `'s ontology`);
this.subscribedOntology = undefined;
this.$emit('show-success-notification', `Successfully unsubscribed from ontology`);
await this.getSharedOntologyData();
this.$emit('subscription-change');
} catch (e) {
// Check error statuses, show errors
this.$emit('show-error-notification', e);
} finally {
// Loading wheel hide
this.subscribeProcessing = false;
this.getSharedOntologyData();
}
}
Expand Down

0 comments on commit b9cbbb0

Please sign in to comment.