LP#1862235 - Create MARC Record - Hide help button for flat editor
authorJosh Stompro <stompro@stompro.org>
Mon, 10 Feb 2020 16:30:37 +0000 (10:30 -0600)
committerJosh Stompro <stompro@stompro.org>
Mon, 10 Feb 2020 16:30:37 +0000 (10:30 -0600)
The help button only works for the non flat editor, so show it only
when flat editor isn't in use.

Signed-off-by: Josh Stompro <stompro@stompro.org>
Open-ILS/src/templates/staff/cat/share/t_marcedit.tt2

index e52e7f1..38a05e3 100644 (file)
@@ -46,7 +46,7 @@
           <button ng-hide="brandNewRecord || Record().deleted() != 't'" class="btn btn-default" ng-click="undeleteRecord()">[% l('Undelete') %]</button>
         </span>
         <span class="btn-group">
-          <button class="btn btn-default" ng-click="showHelp = !showHelp">[% l('Help') %]</button>
+          <button ng-show="!flatEditor.isEnabled" class="btn btn-default" ng-click="showHelp = !showHelp">[% l('Help') %]</button>
         </span>
       </div>
     </div>