Skip to content

Commit

Permalink
Disable save changes button when socket connection is lost
Browse files Browse the repository at this point in the history
  • Loading branch information
Hannu Pelkonen committed Nov 27, 2014
1 parent fba1217 commit 4ba6e03
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 4ba6e03

Please sign in to comment.