[Frontend] Message list initially working

open #159
open #170
Thank you @akhenry;
launchMessages function added to DialogLaunchController.js;
New message-list.html template;
message.html is now its own include;
blocking-message.html renamed to
overlay-blocking-message.html;
This commit is contained in:
Charles Hacskaylo
2015-10-08 09:37:43 -07:00
parent dbcad51325
commit 0ca9e5c952
7 changed files with 132 additions and 11 deletions

View File

@ -239,7 +239,7 @@ define(
// Add the overlay using the OverlayService, which
// will handle actual insertion into the DOM
this.overlay = this.overlayService.createOverlay(
"blocking-message",
"overlay-blocking-message",
{dialog: dialogModel},
"t-dialog-sm"
);
@ -253,6 +253,24 @@ define(
};
DialogService.prototype.showMessageList = function(dialogModel) {
if (this.canShowDialog(dialogModel)) {
// Add the overlay using the OverlayService, which
// will handle actual insertion into the DOM
this.overlay = this.overlayService.createOverlay(
"message-list",
{dialog: dialogModel},
"t-dialog t-message-list"
);
this.dialogVisible = true;
return true;
} else {
//Could not show a dialog, so return indication of this to
//client code.
return false;
}
};
return DialogService;
}