Skip to content

Commit

Permalink
Remove 'Change Interaction' button from modal when an interaction has…
Browse files Browse the repository at this point in the history
… been selected.
  • Loading branch information
michaelWagner committed Sep 24, 2015
1 parent 271d813 commit 6010ac0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/templates/dev/head/editor/state_editor_interaction.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ <h3 ng-if="stateInteractionIdService.displayed">
</div>

<div class="modal-footer">
<button class="btn btn-default" style="float: left;" ng-click="returnToInteractionSelector()" ng-if="stateInteractionIdService.displayed">Change Interaction</button>
<!-- Do not show this button if an interaction is already selected. -->
<button class="btn btn-default" style="float: left;" ng-click="returnToInteractionSelector()" ng-if="stateInteractionIdService.displayed && !stateInteractionIdService.savedMemento">Change Interaction</button>

<button class="btn btn-default" ng-click="cancel()">Cancel</button>
<button class="btn btn-success protractor-test-save-interaction" ng-click="save()"
Expand Down

0 comments on commit 6010ac0

Please sign in to comment.