Skip to content

Commit de408f4

Browse files
kushthedudeabhinavk96
authored andcommitted
Showing Draft Button for Step-3 & 4 (#3266)
1 parent bdf274c commit de408f4

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

app/templates/components/forms/wizard/attendee-step.hbs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,12 @@
104104
{{t 'Forward'}}
105105
<i class="right chevron icon"></i>
106106
</button>
107-
<button class="blue ui three field right labeled icon button {{if isLoading 'disabled'}}" type="button" {{action 'saveDraft'}}>
108-
{{t 'Save draft'}}
109-
<i class="save icon"></i>
110-
</button>
107+
{{#if (not-eq data.event.state 'published')}}
108+
<button class="blue ui three field right labeled icon button {{if isLoading 'disabled'}}" type="button" {{action 'saveDraft'}}>
109+
{{t 'Save draft'}}
110+
<i class="save icon"></i>
111+
</button>
112+
{{/if}}
111113
{{#if data.event.locationName}}
112114
<button class="green ui three field right labeled icon button {{if isLoading 'disabled'}}" type="button" {{action 'publish'}}>
113115
{{t 'Publish'}}

app/templates/components/forms/wizard/sessions-speakers-step.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@
320320
{{t 'Previous'}}
321321
<i class="left chevron icon"></i>
322322
</button>
323-
{{#if (eq data.event.state 'unpublished')}}
323+
{{#if (not-eq data.event.state 'published')}}
324324
<button class="blue ui three field right labeled icon button {{if isLoading 'disabled'}}" type="button" {{action 'saveDraft'}}>
325325
{{t 'Save draft'}}
326326
<i class="save icon"></i>

app/templates/components/forms/wizard/sponsors-step.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
{{t 'Forward'}}
8282
<i class="right chevron icon"></i>
8383
</button>
84-
{{#if (eq data.event.state 'unpublished')}}
84+
{{#if (not-eq data.event.state 'published')}}
8585
<button class="blue ui three field right labeled icon button {{if isLoading 'disabled'}}" type="button" {{action 'saveDraft'}}>
8686
{{t 'Save draft'}}
8787
<i class="save icon"></i>

0 commit comments

Comments
 (0)