mirror of
https://github.com/openfaas/faas.git
synced 2025-06-22 14:53:25 +00:00
Gateway UI - validate manual input
This change validates manual input to the gateway UI when deploying new functions. This is to prevent poor user experience when attempting to deploy a function manually from the UI. The validation check on the function name is the same pattern that is used in the CLI to ensure that when the deploy button is pressed, the function will not fail validation. Signed-off-by: Burton Rheutan <rheutan7@gmail.com>
This commit is contained in:
committed by
Alex Ellis
parent
414c1e76fe
commit
988c855163
2
gateway/assets/script/bootstrap.js
vendored
2
gateway/assets/script/bootstrap.js
vendored
@ -2,7 +2,7 @@
|
||||
// Copyright (c) Alex Ellis 2017. All rights reserved.
|
||||
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
||||
|
||||
var app = angular.module('faasGateway', ['ngMaterial', 'faasGateway.funcStore']);
|
||||
var app = angular.module('faasGateway', ['ngMaterial', 'ngMessages', 'faasGateway.funcStore']);
|
||||
|
||||
app.controller("home", ['$scope', '$log', '$http', '$location', '$interval', '$filter', '$mdDialog', '$mdToast', '$mdSidenav',
|
||||
function($scope, $log, $http, $location, $interval, $filter, $mdDialog, $mdToast, $mdSidenav) {
|
||||
|
Reference in New Issue
Block a user