Improve UI

This commit is contained in:
Philippe Vienne 2016-04-17 23:09:05 +02:00
parent 809997b34b
commit f052a5c1dc
2 changed files with 4 additions and 3 deletions

View file

@ -1,9 +1,8 @@
<div class="clearfix">
<h2 class="pull-left">Playlist</h2>
<a class="btn btn-default pull-right" ng-click="load()">Load</a>
</div>
<div class="list-group ">
<div class="list-group-item" ng-repeat="playlist in playlists" ng-click="open(playlist)">
<a ng-class="playlist == current?'list-group-item active':'list-group-item'" ng-repeat="playlist in playlists" ng-click="open(playlist)">
{{playlist.name}}
</div>
</a>
</div>

View file

@ -82,7 +82,9 @@
}
})
};
$scope.current = undefined;
$scope.open = function(playlist) {
$scope.current = playlist;
$state.go('finder.playlist.dups',{uid: playlist.owner.id, id: playlist.id})
};
$scope.load();