Skip to content

Commit

Permalink
bug 1380874: Remove signoff/revoke buttons from history. (#392). r=bh…
Browse files Browse the repository at this point in the history
…earsum
  • Loading branch information
Alweezy authored and bhearsum committed Sep 12, 2017
1 parent f41081d commit f705320
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
12 changes: 6 additions & 6 deletions ui/app/templates/permission_scheduled_changes.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ <h2>
<h3 class="panel-title">
<div style="float: right">
<i ng-if=" scheduled_changes_rules_count && $first && (currentPage == 1)">Current</i>
<button class="btn btn-xs btn-primary" ng-click="signoff(sc)"
ng-show="! isEmpty(sc['required_signoffs']) && ! sc['signoffs'].hasOwnProperty(current_user)">
Signoff as...
<button ng-show="!scheduled_changes_rules_count && (! isEmpty(sc['required_signoffs']) &&
!sc['signoffs'].hasOwnProperty(current_user))" class="btn btn-xs btn-primary" ng-click="signoff(sc)">
Signoff as...
</button>
<button class="btn btn-xs btn-danger" ng-click="revokeSignoff(sc)"
ng-show="! isEmpty(sc['required_signoffs']) && sc['signoffs'].hasOwnProperty(current_user)">
Revoke your Signoff
<button ng-show="!scheduled_changes_rules_count && (! isEmpty(sc['required_signoffs']) &&
sc['signoffs'].hasOwnProperty(current_user))" class="btn btn-xs btn-danger" ng-click="revokeSignoff(sc)">
Revoke your Signoff
</button>
<button ng-show="!sc.complete" class="btn btn-default btn-xs" ng-click="openScheduledUpdateModal(sc)">Update</button>
<button ng-show="!sc.complete" class="btn btn-default btn-xs" ng-click="openDeleteModal(sc)">Delete</button>
Expand Down
12 changes: 6 additions & 6 deletions ui/app/templates/release_scheduled_changes.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@ <h2>
<h3 class="panel-title">
<div style="float: right">
<i ng-if="scheduled_changes_count && $first && (currentPage == 1)">Current</i>
<button class="btn btn-xs btn-primary" ng-click="signoff(sc)"
ng-show="! isEmpty(sc['required_signoffs']) && ! sc['signoffs'].hasOwnProperty(current_user)">
Signoff as...
<button ng-show="!scheduled_changes_rules_count && (! isEmpty(sc['required_signoffs']) &&
!sc['signoffs'].hasOwnProperty(current_user))" class="btn btn-xs btn-primary" ng-click="signoff(sc)">
Signoff as...
</button>
<button class="btn btn-xs btn-danger" ng-click="revokeSignoff(sc)"
ng-show="! isEmpty(sc['required_signoffs']) && sc['signoffs'].hasOwnProperty(current_user)">
Revoke your Signoff
<button ng-show="!scheduled_changes_rules_count && (! isEmpty(sc['required_signoffs']) &&
sc['signoffs'].hasOwnProperty(current_user))" class="btn btn-xs btn-danger" ng-click="revokeSignoff(sc)">
Revoke your Signoff
</button>
<button class="btn btn-default btn-xs" ng-click="openDataModal(sc)">View Data</button>
<button ng-show="!scheduled_changes_count && !sc.complete" class="btn btn-default btn-xs" ng-click="openUpdateModal(sc)">Update</button>
Expand Down
12 changes: 6 additions & 6 deletions ui/app/templates/rule_scheduled_changes.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@ <h2>
<h3 class="panel-title">
<div style="float: right">
<i ng-if=" scheduled_changes_rules_count && $first && (currentPage == 1)">Current</i>
<button class="btn btn-xs btn-primary" ng-click="signoff(sc)"
ng-show="! isEmpty(sc['required_signoffs']) && ! sc['signoffs'].hasOwnProperty(current_user)">
Signoff as...
<button ng-show="!scheduled_changes_rules_count && (! isEmpty(sc['required_signoffs']) &&
!sc['signoffs'].hasOwnProperty(current_user))" class="btn btn-xs btn-primary" ng-click="signoff(sc)">
Signoff as...
</button>
<button class="btn btn-xs btn-danger" ng-click="revokeSignoff(sc)"
ng-show="! isEmpty(sc['required_signoffs']) && sc['signoffs'].hasOwnProperty(current_user)">
Revoke your Signoff
<button ng-show="!scheduled_changes_rules_count && (! isEmpty(sc['required_signoffs']) &&
sc['signoffs'].hasOwnProperty(current_user))" class="btn btn-xs btn-danger" ng-click="revokeSignoff(sc)">
Revoke your Signoff
</button>
<button ng-show="!scheduled_changes_rules_count && !sc.complete" class="btn btn-default btn-xs" ng-click="openUpdateModal(sc)">Update</button>
<button ng-show="!scheduled_changes_rules_count && !sc.complete" class="btn btn-default btn-xs" ng-click="openDeleteModal(sc)">Delete</button>
Expand Down

0 comments on commit f705320

Please sign in to comment.