mirror of
https://github.com/openfaas/faas.git
synced 2025-06-20 13:06:40 +00:00
added a sidenav toggle button when the sidenav is hidden.
Signed-off-by: Ken Fukuyama <kenfdev@gmail.com>
This commit is contained in:
8
gateway/assets/script/bootstrap.js
vendored
8
gateway/assets/script/bootstrap.js
vendored
@ -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: "",
|
||||
|
Reference in New Issue
Block a user