actually finally send an event to queue a song, tested, debugged

This commit is contained in:
Blue 2018-11-29 22:41:53 +03:00
parent b2ddc804c7
commit 43d0a1dfe9
5 changed files with 35 additions and 11 deletions

View file

@ -36,10 +36,10 @@ var ImagePane = Vocabulary.inherit({
this.trigger("seviceMessage", "Action " + act + " is not supported in ImagePanel, skipping");
supported = false;
}
var model = new LM("");
var model = new LM(actionProps, "");
model.enabled = true;
model.hasLabel = true;
model.label = new LM(actObj.name);
model.label = new LM(actionLabelProps, actObj.name);
model.addController(model.label);
model.activate = this._actionActivate.bind(this, act);
@ -111,10 +111,21 @@ var ImagePane = Vocabulary.inherit({
var standardActions = {
"play": {
handler: function (obj) {
window.play(obj);
var id = obj._pairAddress.back(); //todo it's a kind of crutch, need to do something about it in the future
window.play(id);
id.destructor();
},
name: "Play"
}
};
var actionProps = {
"backgroundColor": "primaryColor"
};
var actionLabelProps = {
"fontFamily": "casualFont",
"fontSize": "casualFontSize",
"color": "primaryFontColor"
}
module.exports = ImagePane;