Skip to content
This repository has been archived by the owner on May 4, 2022. It is now read-only.

Commit

Permalink
Fix ng-if to avoid failure if actionButtons attribute doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
thevoiceofzeke committed Aug 25, 2016
1 parent 8135db6 commit 3012fdc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<div class="priority-notifications" ng-if='notificationsEnabled && (directiveMode === "priority")' ng-repeat="priority in priorityNotifications | limitTo: 1">
<div ng-if='priorityNotifications.length == 1' layout="row" layout-align="center center" layout-fill>
<a ng-href="{{priority.actionURL}}" alt="{{priority.actionAlt}}" class="notification-message">{{priority.title}}</a>
<div layout="row" layout-align="center center" ng-if='priority.actionButtons.length > 0' class="notification-buttons">
<div layout="row" layout-align="center center" ng-if="priority.actionButtons && priority.actionButtons.length > 0" class="notification-buttons">
<md-button class="md-raised"
ng-href="button.url"
ng-repeat="button in priority.buttonText track by button.caption"
Expand Down

0 comments on commit 3012fdc

Please sign in to comment.