Add Namespace indicator on Function page part of #1379

This is a precursor to adding a dropdown for namespaces
selection (#1379)

Signed-off-by: Alistair Hey <alistair@heyal.co.uk>
This commit is contained in:
Alistair Hey 2019-11-20 08:41:30 +00:00 committed by Alex Ellis
parent d4d832db4c
commit 2f683ba236
2 changed files with 6 additions and 0 deletions

View File

@ -126,6 +126,11 @@
<label>Invocation count</label>
<input ng-model="function.invocationCount" type="text" readonly="readonly">
</md-input-container>
<md-input-container class="md-block" flex-gt-sm>
<label>Namespace</label>
<input ng-model="function.namespace" type="text" readonly="readonly">
</md-input-container>
</div>
<div layout-gt-sm="row">

View File

@ -225,6 +225,7 @@ app.controller("home", ['$scope', '$log', '$http', '$location', '$interval', '$f
$scope.functions[i].image = response.data[j].image;
$scope.functions[i].replicas = response.data[j].replicas;
$scope.functions[i].invocationCount = response.data[j].invocationCount;
$scope.functions[i].namespace = response.data[j].namespace;
}
}
}