aboutsummaryrefslogtreecommitdiffstats
path: root/3rd_party/static/onap-ui/components/application/application.html
diff options
context:
space:
mode:
Diffstat (limited to '3rd_party/static/onap-ui/components/application/application.html')
-rw-r--r--3rd_party/static/onap-ui/components/application/application.html14
1 files changed, 12 insertions, 2 deletions
diff --git a/3rd_party/static/onap-ui/components/application/application.html b/3rd_party/static/onap-ui/components/application/application.html
index 2238ca4..4cf956f 100644
--- a/3rd_party/static/onap-ui/components/application/application.html
+++ b/3rd_party/static/onap-ui/components/application/application.html
@@ -1,3 +1,12 @@
+<!--
+ Copyright (c) 2019 opnfv.
+
+ All rights reserved. This program and the accompanying materials
+ are made available under the terms of the Apache License, Version 2.0
+ which accompanies this distribution, and is available at
+ http://www.apache.org/licenses/LICENSE-2.0
+-->
+
<div class="container-fluid common-main-container">
<div class="results-table" style="margin-top: 30px; overflow: scroll;">
<table class="table table-striped table-hover">
@@ -56,7 +65,8 @@
</div>
</script>
<tbody style="white-space: nowrap; overflow: hidden; text-overflow: ellipsis;">
- <tr ng-if="results.status != 'review'" ng-repeat="app in ctrl.applications">
+ <tr ng-if="auth.currentUser.role.indexOf('administrator') != -1"
+ ng-repeat="app in ctrl.applications">
<td>{{ app.creation_date | limitTo: 10 }}</td>
<td>{{ app.owner }}</td>
<td>{{ app.onap_version }}</td>
@@ -80,7 +90,7 @@
<i ng-if="app.lab_location != 'internal'" class="glyphicon glyphicon-info-sign opnfv-blue"></i>
</td>
<td>
- <a ng-click="ctrl.toggleApproveApp(app._id, 'true')" class="badge badge-info"
+ <a ng-click="ctrl.toggleApproveApp(app._id, 'true', app.owner)" class="badge badge-info"
ng-if="app.approved == 'false'"
data-toggle="tooltip" title="Approve Application">
<i class="glyphicon glyphicon-ok" ></i>