diff --git a/packages/ilios-common/addon/components/learningmaterial-manager.hbs b/packages/ilios-common/addon/components/learningmaterial-manager.hbs index 56ad889c2b..b29d8ff3d8 100644 --- a/packages/ilios-common/addon/components/learningmaterial-manager.hbs +++ b/packages/ilios-common/addon/components/learningmaterial-manager.hbs @@ -173,10 +173,8 @@ {{t "general.link"}}: - - {{this.link}} - - + {{this.link}} + @@ -189,9 +187,7 @@ {{#if (eq this.mimetype "application/pdf")}} - - {{this.filename}} - + {{this.filename}} @@ -200,7 +196,7 @@ {{this.filename}} {{/if}} - + diff --git a/packages/ilios-common/addon/components/learningmaterial-manager.js b/packages/ilios-common/addon/components/learningmaterial-manager.js index 90adc7ece5..1591381f0f 100644 --- a/packages/ilios-common/addon/components/learningmaterial-manager.js +++ b/packages/ilios-common/addon/components/learningmaterial-manager.js @@ -10,6 +10,7 @@ import { findById } from 'ilios-common/utils/array-helpers'; @validatable export default class LearningMaterialManagerComponent extends Component { @service store; + @service flashMessages; @tracked notes; @tracked learningMaterial; @@ -184,4 +185,8 @@ export default class LearningMaterialManagerComponent extends Component { await this.parentMaterial.save(); this.args.closeManager(); }); + + textCopied = restartableTask(async () => { + this.flashMessages.success('general.copiedSuccessfully'); + }); }