You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

dialogerror.js 499B

123456789101112131415161718
  1. /**
  2. * Created by robin on 11/3/15.
  3. */
  4. 'use strict';
  5. angular.module('luticateUtils').
  6. controller('luticateDialogError', ['$scope', 'data', '$state', 'luticateAuthCache',
  7. function ($scope, data, $state, luticateAuthCache) {
  8. $scope.message = data.message;
  9. $scope.showLogin = data.data.Status == 401;
  10. $scope.reconnect = function()
  11. {
  12. $scope.$dismiss();
  13. luticateAuthCache.removeUser();
  14. $state.go('login');
  15. };
  16. }]);