Improve UI
This commit is contained in:
parent
809997b34b
commit
f052a5c1dc
2 changed files with 4 additions and 3 deletions
|
@ -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>
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue