From 19478bd378c591be8c70ffd7b7c53230087932ca Mon Sep 17 00:00:00 2001 From: Sundaram Dubey <56407566+maze-runnar@users.noreply.github.com> Date: Fri, 4 Sep 2020 12:38:12 +0530 Subject: [PATCH 1/2] adding action to clear licence --- app/components/forms/wizard/other-details-step.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/components/forms/wizard/other-details-step.js b/app/components/forms/wizard/other-details-step.js index 497981b2b97..36314021788 100644 --- a/app/components/forms/wizard/other-details-step.js +++ b/app/components/forms/wizard/other-details-step.js @@ -142,6 +142,11 @@ export default Component.extend(FormMixin, EventWizardMixin, { licenceUrl : license.link }); }, + clearLicense() { + this.setProperties({ + 'data.event.copyright.licence': null + }); + }, saveDraft() { this.onValid(() => { this.set('data.event.state', 'draft'); From cbe295481b463bc169178711dc8f193975912a7f Mon Sep 17 00:00:00 2001 From: Sundaram Dubey <56407566+maze-runnar@users.noreply.github.com> Date: Fri, 4 Sep 2020 12:43:14 +0530 Subject: [PATCH 2/2] adding clear icon for dropdown --- .../forms/wizard/other-details-step.hbs | 45 +++++++++++-------- 1 file changed, 26 insertions(+), 19 deletions(-) diff --git a/app/templates/components/forms/wizard/other-details-step.hbs b/app/templates/components/forms/wizard/other-details-step.hbs index 64d4f23b56c..255bca48bb6 100644 --- a/app/templates/components/forms/wizard/other-details-step.hbs +++ b/app/templates/components/forms/wizard/other-details-step.hbs @@ -89,25 +89,32 @@ - - - -
{{t 'Select License'}}
- -
+
+ + + +
{{t 'Select License'}}
+ +
+ {{#if data.event.copyright.licence}} + + {{/if}} +