forked from Mataco817/OpenBarbell
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added pulldown refresher and event listeners for deviceready, pause, …
…and resume
- Loading branch information
Morabito
committed
Mar 4, 2016
1 parent
b090dfa
commit 762e904
Showing
7 changed files
with
87 additions
and
95 deletions.
There are no files selected for viewing
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
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
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,33 +1,39 @@ | ||
<md-content layout="column" ng-class="workoutCtrl.waiting || !workoutCtrl.ready ? 'layout-align-center-center' : 'layout-align-start-center'" layout-fill> | ||
<!-- Bluetooth Disabled Template --> | ||
<!-- Contains button to direct to bluetooth settings --> | ||
<div | ||
layout="column" layout-align="center center" | ||
ng-if="!workoutCtrl.waiting && !workoutCtrl.ready" | ||
ng-include="'app/workout/templates/bluetooth-disabled.tmpl.html'"> | ||
</div> | ||
<ion-content layout="column" ng-class="workoutCtrl.waiting || !workoutCtrl.ready ? 'layout-align-center-center' : 'layout-align-start-center'" layout-fill> | ||
|
||
<ion-refresher | ||
pulling-text="Pull to refresh..." | ||
on-refresh="workoutCtrl.doRefresh()"> | ||
</ion-refresher> | ||
|
||
<!-- Bluetooth Disabled Template --> | ||
<!-- Contains button to direct to bluetooth settings --> | ||
<div | ||
layout="column" layout-align="center center" | ||
ng-if="!workoutCtrl.waiting && !workoutCtrl.ready" | ||
ng-include="'app/workout/templates/bluetooth-disabled.tmpl.html'"> | ||
</div> | ||
|
||
<!-- Bluetooth Device Disconnected Template --> | ||
<!-- Contains button to direct to bluetooth settings --> | ||
<div | ||
layout="column" layout-align="center center" | ||
ng-if="workoutCtrl.waiting && !workoutCtrl.ready" | ||
ng-include="'app/workout/templates/bluetooth-disconnected.tmpl.html'"> | ||
</div> | ||
<!-- Bluetooth Device Disconnected Template --> | ||
<!-- Contains button to direct to bluetooth settings --> | ||
<div | ||
layout="column" layout-align="center center" | ||
ng-if="workoutCtrl.waiting && !workoutCtrl.ready" | ||
ng-include="'app/workout/templates/bluetooth-disconnected.tmpl.html'"> | ||
</div> | ||
|
||
<!-- Bluetooth Device Ready & Waiting Template --> | ||
<!-- Displays Open Barbell Icon and Greeting --> | ||
<div | ||
layout="column" layout-align="center center" | ||
ng-if="workoutCtrl.waiting && workoutCtrl.ready" | ||
ng-include="'app/workout/templates/waiting.tmpl.html'"> | ||
</div> | ||
<!-- Bluetooth Device Ready & Waiting Template --> | ||
<!-- Displays Open Barbell Icon and Greeting --> | ||
<div | ||
layout="column" layout-align="center center" | ||
ng-if="workoutCtrl.waiting && workoutCtrl.ready" | ||
ng-include="'app/workout/templates/waiting.tmpl.html'"> | ||
</div> | ||
|
||
<!-- Workout Cards, once data starts being collected --> | ||
<md-card | ||
class="workout-set-card" | ||
ng-if="!workoutCtrl.waiting && workoutCtrl.ready" | ||
ng-repeat="set in workoutCtrl.getSets() | orderBy:$index:true" | ||
ng-include="'app/workout/templates/workout-card.tmpl.html'"> | ||
</md-card> | ||
</md-content> | ||
<!-- Workout Cards, once data starts being collected --> | ||
<md-card | ||
class="workout-set-card" | ||
ng-if="!workoutCtrl.waiting && workoutCtrl.ready" | ||
ng-repeat="set in workoutCtrl.getSets() | orderBy:$index:true" | ||
ng-include="'app/workout/templates/workout-card.tmpl.html'"> | ||
</md-card> | ||
</ion-content> |
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