[Frontend] Sanding/positioning and Cancel button added to Messasges dialog

open #159
open #170
Added Cancel button to Messages dialog in DialogService.js;
Important tweaks to layout of messages to allow
bottom-bar to align to bottom in singleton dialog view;
Revised status colors in theme's constants files;
This commit is contained in:
Charles Hacskaylo
2015-10-08 19:10:26 -07:00
parent 0e840ae003
commit 954fdd5906
11 changed files with 211 additions and 103 deletions

View File

@ -240,7 +240,7 @@ define(
// will handle actual insertion into the DOM
this.overlay = this.overlayService.createOverlay(
"overlay-blocking-message",
{dialog: dialogModel},
{ dialog: dialogModel },
"t-dialog-sm"
);
this.dialogVisible = true;
@ -254,12 +254,25 @@ define(
};
DialogService.prototype.showMessageList = function(dialogModel) {
var self = this;
// Cancel function; this will be passed in to the
// overlay-dialog template and associated with a
// Cancel or X button click
function cancel() {
//deferred.reject(); // Not sure what this does
self.dismiss();
}
if (this.canShowDialog(dialogModel)) {
// Add the overlay using the OverlayService, which
// will handle actual insertion into the DOM
this.overlay = this.overlayService.createOverlay(
"overlay-message-list",
{dialog: dialogModel},
{
dialog: dialogModel,
cancel: cancel
},
"t-dialog"
);
this.dialogVisible = true;