New UI: filters now operational on all views

This commit is contained in:
emeric
2018-01-31 13:06:59 +01:00
parent 6591006fcc
commit 0da8d83288
12 changed files with 81 additions and 38 deletions
+5 -5
View File
@@ -33,8 +33,9 @@
namespace UserInterface {
Release::Release(Wt::WContainerWidget* parent)
: Wt::WContainerWidget(parent)
Release::Release(Filters* filters, Wt::WContainerWidget* parent)
: Wt::WContainerWidget(parent),
_filters(filters)
{
wApp->internalPathChanged().connect(std::bind([=]
{
@@ -109,10 +110,9 @@ Release::refresh()
auto tracksContainer = new Wt::WContainerWidget();
t->bindWidget("tracks", tracksContainer);
std::vector<Database::Cluster::id_type> clusterIds; // TODO fill
auto clusterIds = _filters->getClusterIds();
auto tracks = release->getTracks(clusterIds);
// auto tracks = release->getTracks(clusterIds);
auto tracks = release->getTracks();
bool variousArtists = release->hasVariousArtists();
for (auto track : tracks)