Skip to content
This repository has been archived by the owner on Jun 17, 2019. It is now read-only.

Commit

Permalink
Fix retraining fail message
Browse files Browse the repository at this point in the history
  • Loading branch information
trivedigaurav committed Jul 17, 2015
1 parent a43f78c commit a767cea
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
9 changes: 9 additions & 0 deletions app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -573,6 +573,15 @@ <h4>Training Results</h4>

</span>

<span ng-show="retrainData.status=='Fail'">

<p>
<span class="glyphicon glyphicon-remove" ></span>
Couldn't complete retraining!
</p>

</span>

<span ng-show="retrainData.status=='Warning'">
<p>
<span class="glyphicon glyphicon-remove"></span>
Expand Down
4 changes: 3 additions & 1 deletion app/js/controllers.js
Original file line number Diff line number Diff line change
Expand Up @@ -891,7 +891,9 @@ angular.module('myApp.controllers', [])
}, function() {
backend.putLogEvent("Error", "Unable to send feedback.");
alert("Unable to send feedback.");
$scope.retrainData.loading = false;
$scope.retrainData.loading = false;
$scope.retrainData.status = "Fail";
$scope.retrainData.message ="Unable to send feedback!"
});
};

Expand Down

0 comments on commit a767cea

Please sign in to comment.