Skip to content

Commit

Permalink
fix(watch): add spinner to watch page while querying remote server
Browse files Browse the repository at this point in the history
  • Loading branch information
MathieuNls committed Nov 3, 2016
1 parent 0ed640e commit cebdd82
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 7 deletions.
16 changes: 10 additions & 6 deletions src/pages/watch/watch.html
Original file line number Diff line number Diff line change
Expand Up @@ -82,23 +82,27 @@

<div class="group">

<div [hidden]="watchModel.id!==null">
<div [hidden]="watchModel.id!==null">
<button
[disabled]="submitAttempt"
ion-button
color="primary" type="submit">
{{ 'add-watch' | translate }}
<span [hidden]="submitAttempt">{{ 'add-watch' | translate }}</span>
<ion-spinner [hidden]="!submitAttempt"></ion-spinner>
</button>
</div>

<div [hidden]="watchModel.id===null">
<button ion-button color="accent" type="submit"
<button [disabled]="submitAttempt" ion-button color="accent" type="submit"
>
{{ 'update-watch' | translate }}
<span [hidden]="submitAttempt">{{ 'update-watch' | translate }}</span>
<ion-spinner [hidden]="!submitAttempt"></ion-spinner>
</button>

<button ion-button color="danger"
<button [disabled]="submitAttempt" ion-button color="danger"
(click)="onDelete()">
{{ 'delete-watch' | translate }}
<span [hidden]="submitAttempt">{{ 'delete-watch' | translate }}</span>
<ion-spinner [hidden]="!submitAttempt"></ion-spinner>
</button>
</div>

Expand Down
7 changes: 7 additions & 0 deletions src/pages/watch/watch.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@ ion-content#watch{
width: 100%;
}

ion-spinner * {
width: 28px;
height: 28px;
stroke: white;
fill: white;
}


input {
font-size:18px;
Expand Down
2 changes: 1 addition & 1 deletion src/share
Submodule share updated from 4e5336 to 3bd4b1

0 comments on commit cebdd82

Please sign in to comment.