Added Play/Queue buttons in the releases view

This commit is contained in:
emeric
2019-08-06 13:55:43 +02:00
parent cf46f1a7c2
commit f8cb16954b
12 changed files with 135 additions and 122 deletions
+8 -8
View File
@@ -102,19 +102,19 @@ Artist::refresh()
{
Wt::WText* playBtn = t->bindNew<Wt::WText>("play-btn", Wt::WString::tr("Lms.Explore.template.play-btn"), Wt::TextFormat::XHTML);
playBtn->clicked().connect(std::bind([=]
playBtn->clicked().connect([=]
{
artistPlay.emit(*artistId);
}));
artistsPlay.emit({*artistId});
});
}
{
Wt::WText* addBtn = t->bindNew<Wt::WText>("add-btn", Wt::WString::tr("Lms.Explore.template.add-btn"), Wt::TextFormat::XHTML);
addBtn->clicked().connect(std::bind([=]
addBtn->clicked().connect([=]
{
artistAdd.emit(*artistId);
}));
artistsAdd.emit({*artistId});
});
}
Wt::WContainerWidget* releasesContainer = t->bindNew<Wt::WContainerWidget>("releases");
@@ -179,13 +179,13 @@ Artist::refresh()
Wt::WText* playBtn = entry->bindNew<Wt::WText>("play-btn", Wt::WString::tr("Lms.Explore.template.play-btn"), Wt::TextFormat::XHTML);
playBtn->clicked().connect(std::bind([=]
{
releasePlay.emit(releaseId);
releasesPlay.emit({releaseId});
}));
Wt::WText* addBtn = entry->bindNew<Wt::WText>("add-btn", Wt::WString::tr("Lms.Explore.template.add-btn"), Wt::TextFormat::XHTML);
addBtn->clicked().connect(std::bind([=]
{
releaseAdd.emit(releaseId);
releasesAdd.emit({releaseId});
}));
}
}