Explorar o código

Disable the review button when history is open.

Paulo Reis %!s(int64=8) %!d(string=hai) anos
pai
achega
4ff7410391
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      services/web/app/views/project/editor/header.pug

+ 2 - 1
services/web/app/views/project/editor/header.pug

@@ -93,7 +93,8 @@ header.toolbar.toolbar-header.toolbar-with-labels(
 		a.btn.btn-full-height(
 			href,
 			ng-if="project.features.trackChangesVisible",
-			ng-class="{ active: ui.reviewPanelOpen }"
+			ng-class="{ active: ui.reviewPanelOpen && ui.view !== 'history' }"
+			ng-disabled="ui.view === 'history'"
 			ng-click="toggleReviewPanel()"
 		)
 			i.review-icon