mirror of
https://github.com/openfaas/faas.git
synced 2025-06-16 21:06:54 +00:00
UI: in-line ready directive
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
This commit is contained in:
parent
a8d91590ab
commit
b9d705ebd4
@ -91,7 +91,10 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div layout-gt-sm="row">
|
<div layout-gt-sm="row">
|
||||||
<ready-input></ready-input>
|
<md-input-container class="md-icon-float md-block">
|
||||||
|
<label>Status</label>
|
||||||
|
<input value="{{ function.ready ? 'Ready' : 'Not ready' }}" type="text" readonly="readonly">
|
||||||
|
</md-input-container>
|
||||||
|
|
||||||
<md-input-container class="md-icon-float md-block">
|
<md-input-container class="md-icon-float md-block">
|
||||||
<label>Replicas</label>
|
<label>Replicas</label>
|
||||||
|
10
gateway/assets/script/bootstrap.js
vendored
10
gateway/assets/script/bootstrap.js
vendored
@ -4,16 +4,6 @@
|
|||||||
|
|
||||||
var app = angular.module('faasGateway', ['ngMaterial', 'faasGateway.funcStore']);
|
var app = angular.module('faasGateway', ['ngMaterial', 'faasGateway.funcStore']);
|
||||||
|
|
||||||
app.directive("readyInput", function() {
|
|
||||||
return {
|
|
||||||
"restrict": "E",
|
|
||||||
"template": '<md-input-container class="md-icon-float md-block">'+
|
|
||||||
' <label>Status</label>' +
|
|
||||||
' <input value="{{ function.ready ? \'Ready\' : \'Querying\' }}" type="text" readonly="readonly">' +
|
|
||||||
'</md-input-container>'
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
app.controller("home", ['$scope', '$log', '$http', '$location', '$timeout', '$mdDialog', '$mdToast', '$mdSidenav',
|
app.controller("home", ['$scope', '$log', '$http', '$location', '$timeout', '$mdDialog', '$mdToast', '$mdSidenav',
|
||||||
function($scope, $log, $http, $location, $timeout, $mdDialog, $mdToast, $mdSidenav) {
|
function($scope, $log, $http, $location, $timeout, $mdDialog, $mdToast, $mdSidenav) {
|
||||||
var newFuncTabIdx = 0;
|
var newFuncTabIdx = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user