Skip to content

Commit 6158a0a

Browse files
committed
Only show "copy and paste times of first day to all other days" if there
is more than one day
1 parent c23ade3 commit 6158a0a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

app/templates/components/create-options-datetime.hbs

+5-3
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,11 @@
5252
{{/each}}
5353
</div>
5454

55-
{{#bs-form-element}}
56-
<button {{action "adoptTimesOfFirstDay"}} class="btn btn-default adopt-times-of-first-day">{{t "create.options-datetime.copy-first-line"}}</button>
57-
{{/bs-form-element}}
55+
{{#if (gt groupedDates.length 1)}}
56+
{{#bs-form-element}}
57+
<button {{action "adoptTimesOfFirstDay"}} class="btn btn-default adopt-times-of-first-day">{{t "create.options-datetime.copy-first-line"}}</button>
58+
{{/bs-form-element}}
59+
{{/if}}
5860

5961
{{#bs-form-element}}
6062
{{bs-button

0 commit comments

Comments
 (0)