This repository has been archived by the owner on May 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(attendance-slider): octanify and fix tests
- Loading branch information
1 parent
3d4465c
commit 2ffa8e2
Showing
7 changed files
with
181 additions
and
141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,36 @@ | ||
<RangeSlider @start={{this.start}} @step={{15}} @min={{0}} @max={{1440}} @connect={{true}} @animate={{true}} @behaviour="drag" @tooltips={{this.tooltips}} @on-slide={{action (mut this.values)}} @on-change={{action (perform this.save)}} /> | ||
<div class="attendance-slider" ...attributes> | ||
<RangeSlider | ||
@start={{this.start}} | ||
@step={{15}} | ||
@min={{0}} | ||
@max={{1440}} | ||
@connect={{true}} | ||
@animate={{true}} | ||
@behaviour="drag" | ||
@tooltips={{this.tooltips}} | ||
@on-slide={{fn (mut this.values)}} | ||
@on-change={{perform this.save}} | ||
/> | ||
|
||
<div class="slider-labels"> | ||
{{#each this.labels as |label|}} | ||
<div style={{label.style}} class="slider-label slider-label--{{label.size}}"> | ||
<div class="slider-label-text"> | ||
{{label.value}} | ||
<div class="slider-labels"> | ||
{{#each this.labels as |label|}} | ||
<div | ||
style={{label.style}} | ||
class="slider-label slider-label--{{label.size}}" | ||
> | ||
<div class="slider-label-text"> | ||
{{label.value}} | ||
</div> | ||
</div> | ||
</div> | ||
{{/each}} | ||
</div> | ||
{{/each}} | ||
</div> | ||
|
||
<div class="slider-title"> | ||
<span>{{this.duration}}</span> {{fa-icon 'trash' data-test-delete-attendance=true click=(perform this.delete)}} | ||
<div class="slider-title"> | ||
<span>{{this.duration}}</span> | ||
<FaIcon | ||
@icon="trash" | ||
data-test-delete-attendance="true" | ||
{{on "click" (perform this.delete)}} | ||
/> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.