From dd4685af6a63c15b11caa38a8cb7b603d692f0bd Mon Sep 17 00:00:00 2001 From: Michael Chadwick Date: Fri, 19 Jul 2024 11:11:48 -0700 Subject: [PATCH 1/3] added flash message to file link copy --- .../addon/components/learningmaterial-manager.hbs | 2 +- .../addon/components/learningmaterial-manager.js | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/ilios-common/addon/components/learningmaterial-manager.hbs b/packages/ilios-common/addon/components/learningmaterial-manager.hbs index 56ad889c2b..336850becd 100644 --- a/packages/ilios-common/addon/components/learningmaterial-manager.hbs +++ b/packages/ilios-common/addon/components/learningmaterial-manager.hbs @@ -200,7 +200,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'); + }); } From 0e9c5586440a2f4c2aa1fcb0545cc263cbc66138 Mon Sep 17 00:00:00 2001 From: Michael Chadwick Date: Fri, 19 Jul 2024 11:13:32 -0700 Subject: [PATCH 2/3] added flash message to web link copy --- .../ilios-common/addon/components/learningmaterial-manager.hbs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ilios-common/addon/components/learningmaterial-manager.hbs b/packages/ilios-common/addon/components/learningmaterial-manager.hbs index 336850becd..8e94418b73 100644 --- a/packages/ilios-common/addon/components/learningmaterial-manager.hbs +++ b/packages/ilios-common/addon/components/learningmaterial-manager.hbs @@ -176,7 +176,7 @@ {{this.link}} - + From 297e616ee76432585d01fa8ca6e4c708637bee17 Mon Sep 17 00:00:00 2001 From: Michael Chadwick Date: Fri, 19 Jul 2024 11:17:53 -0700 Subject: [PATCH 3/3] removed space between file/link path and icon/buttons getting an underline --- .../addon/components/learningmaterial-manager.hbs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/packages/ilios-common/addon/components/learningmaterial-manager.hbs b/packages/ilios-common/addon/components/learningmaterial-manager.hbs index 8e94418b73..b29d8ff3d8 100644 --- a/packages/ilios-common/addon/components/learningmaterial-manager.hbs +++ b/packages/ilios-common/addon/components/learningmaterial-manager.hbs @@ -173,9 +173,7 @@ {{t "general.link"}}: - - {{this.link}} - + {{this.link}} @@ -189,9 +187,7 @@ {{#if (eq this.mimetype "application/pdf")}} - - {{this.filename}} - + {{this.filename}}