Skip to content

Commit

Permalink
Add Namespace indicator on Function page part of #1379
Browse files Browse the repository at this point in the history
This is a precursor to adding a dropdown for namespaces
selection (#1379)

Signed-off-by: Alistair Hey <alistair@heyal.co.uk>
  • Loading branch information
Waterdrips authored and alexellis committed Nov 25, 2019
1 parent d4d832d commit 2f683ba
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions gateway/assets/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,11 @@ <h1 style="flex: 1 1 auto;"><img src="img/logo-text.svg" class="md-logo"></h1>
<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">
Expand Down
1 change: 1 addition & 0 deletions gateway/assets/script/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
}
Expand Down

0 comments on commit 2f683ba

Please sign in to comment.