added a sidenav toggle button when the sidenav is hidden.

Signed-off-by: Ken Fukuyama <kenfdev@gmail.com>
This commit is contained in:
Ken Fukuyama
2017-09-21 22:48:34 +09:00
committed by Alex Ellis
parent 296b173c7f
commit ac3e91cbdc
4 changed files with 28 additions and 3 deletions

View File

@ -4,8 +4,8 @@
var app = angular.module('faasGateway', ['ngMaterial']);
app.controller("home", ['$scope', '$log', '$http', '$location', '$timeout', '$mdDialog', '$mdToast',
function($scope, $log, $http, $location, $timeout, $mdDialog, $mdToast) {
app.controller("home", ['$scope', '$log', '$http', '$location', '$timeout', '$mdDialog', '$mdToast', '$mdSidenav',
function($scope, $log, $http, $location, $timeout, $mdDialog, $mdToast, $mdSidenav) {
$scope.functions = [];
$scope.invocationRequest = "";
$scope.invocationResponse = "";
@ -14,6 +14,10 @@ app.controller("home", ['$scope', '$log', '$http', '$location', '$timeout', '$md
contentType: "text"
};
$scope.toggleSideNav = function() {
$mdSidenav('left').toggle();
};
$scope.functionTemplate = {
image: "",
envProcess: "",