Merge pull request #2819 from FinnStutzenstein/Issue2661

disable edit button if it is not possible to edit
This commit is contained in:
Norman Jäckel 2017-01-06 16:55:55 +01:00 committed by GitHub
commit da66db7bec
2 changed files with 6 additions and 4 deletions

View File

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

View File

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