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

View File

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