Skip to content

Commit

Permalink
Merge pull request #282 from hannu/disable-save
Browse files Browse the repository at this point in the history
Disable save changes button when socket connection is lost
  • Loading branch information
Juuso Backman committed Nov 27, 2014
2 parents 8104d6b + 4ba6e03 commit c94c6e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/app/views/partials/design.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ <h3 class="sg" ng-hide="showRelated">All variables</h3>

</ul>
<div class="sg action-footer" ng-if="socketService.isAvailable()">
<button class="sg button primary" ng-click="saveVariables()">Save changes</button>
<button class="sg button primary" ng-disabled="!socketService.isConnected()" ng-click="saveVariables()">Save changes</button>
<button class="sg button" ng-click="resetLocal()">Reset local changes</button>
</div>
<div class="sg action-footer" ng-hide="socketService.isAvailable()">
Expand Down

0 comments on commit c94c6e3

Please sign in to comment.