disable edit button if it is not possible to edit

This commit is contained in:
FinnStutzenstein 2017-01-06 14:49:33 +01:00
parent f146e11354
commit 6e7321d2a3
2 changed files with 6 additions and 4 deletions

View File

@ -133,6 +133,7 @@
<div os-perms="core.can_manage_projector" class="nobr">
<!-- edit -->
<a ng-click="editCurrentSlide(projector)"
ng-disabled="!projector.getStateForCurrentSlide()"
class="btn btn-default btn-sm"
title="{{ 'Edit current slide' | translate}}">
<i class="fa fa-pencil"></i>

View File

@ -86,6 +86,7 @@
<div os-perms="core.can_manage_projector" class="nobr">
<!-- edit -->
<a ng-click="editCurrentSlide(active_projector)"
ng-disabled="!active_projector.getStateForCurrentSlide()"
class="btn btn-default btn-sm"
title="{{ 'Edit current slide' | translate}}">
<i class="fa fa-pencil"></i>