[About] Add controllers

Add initial implementations of controllers to support showing
the About dialog on logo click, WTD-667.
This commit is contained in:
Victor Woeltjen 2015-01-14 12:06:05 -08:00
parent 553eb2dd75
commit 150787b25f
3 changed files with 43 additions and 2 deletions

View File

@ -1,2 +1,4 @@
<mct-include ng-click="" key="'app-logo'">
</mct-include>
<span ng-controller="LogoController as logo">
<mct-include ng-click="show-about-dialog" key="'app-logo'">
</mct-include>
</span>

View File

@ -0,0 +1,21 @@
/*global define*/
define(
[],
function () {
"use strict";
function AboutController(versions, $window) {
return {
versions: function () {
return versions;
},
openLicenses: function () {
$window.open("#/licenses", "_blank");
}
};
}
return AboutController;
}
);

View File

@ -0,0 +1,18 @@
/*global define*/
define(
[],
function () {
"use strict";
function LogoController(overlayService) {
return {
showAboutDialog: function () {
overlayService.createOverlay("overlay-about");
}
};
}
return LogoController;
}
);