<div class="modal-header">
+ <div class="message-box" ng-if="!hidden" ng-class="{'error' : messageType == 'error',
+ 'success': messageType == 'success'}"
+ >
+ <span class="message">{{status}}</span> <button class="btn btn-warning btn-xs" ng-click="$parent.hidden=true">X</button>
+ </div>
<h1 class="modal-title">Account Settings</h1>
- <h2 ng-if="status">{{status}}</h2>
</div>
<div class="modal-body">
<h2>Simfiles per page</h2>
.controller("AccountController", ['$scope', '$modalInstance', 'UiSettingsService', function($scope, $modalInstance, UiSettingsService)
{
+ $scope.hidden = true;
$scope.simfilesPerPage = UiSettingsService.getDirective('simfilesPerPage');
$scope.downloadWarnings = UiSettingsService.getDirective('showDownloadWarning');
{
UiSettingsService.setDirective('simfilesPerPage', $scope.simfilesPerPage);
UiSettingsService.setDirective('showDownloadWarning', $scope.downloadWarnings);
- $scope.status = "Saved!";
+ $scope.hidden = false;
+ $scope.messageType = 'success';
+ $scope.status = 'Saved!';
};
$scope.cancel = function()