Sfoglia il codice sorgente

Disable the review button when history is open.

Paulo Reis 8 anni fa
parent
commit
4ff7410391
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  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(
 		a.btn.btn-full-height(
 			href,
 			href,
 			ng-if="project.features.trackChangesVisible",
 			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()"
 			ng-click="toggleReviewPanel()"
 		)
 		)
 			i.review-icon
 			i.review-icon