Skip to content

Commit

Permalink
Fix play/pause toggle button issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
tkem committed Jan 27, 2015
1 parent 54e6065 commit f7285aa
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGES.rst
@@ -1,3 +1,9 @@
0.1.2 2015-01-27
----------------

- Fix play/pause toggle button issues.


0.1.1 2015-01-26
----------------

Expand Down
2 changes: 1 addition & 1 deletion mopidy_mobile/__init__.py
Expand Up @@ -2,7 +2,7 @@

from mopidy import config, ext

__version__ = '0.1.1'
__version__ = '0.1.2'


class Extension(ext.Extension):
Expand Down
4 changes: 2 additions & 2 deletions www/templates/playback.html
Expand Up @@ -44,8 +44,8 @@
ng-disabled="!tlTracks.previous"
>
</button>
<button class="button button-icon icon mopidy-icon-pause"
ng-class="{'mopidy-icon-play': state != 'playing'}"
<button class="button button-icon icon"
ng-class="state != 'playing' ? 'mopidy-icon-play' : 'mopidy-icon-pause'"
ng-click="state != 'playing' ? play() : pause()"
>
</button>
Expand Down

0 comments on commit f7285aa

Please sign in to comment.