mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-03-03 18:51:09 +01:00
24 lines
774 B
JavaScript
24 lines
774 B
JavaScript
(function () {
|
|
'use strict';
|
|
|
|
angular
|
|
.module('traces')
|
|
.controller('TracesController', TracesController);
|
|
|
|
TracesController.$inject = ['$scope', '$state', '$translate', '$timeout', 'Authentication', '$filter', 'NotifycationService', '$stateParams', 'MessagesService',
|
|
'MeanTorrentConfig', 'ModalConfirmService', 'marked', '$rootScope'];
|
|
|
|
function TracesController($scope, $state, $translate, $timeout, Authentication, $filter, NotifycationService, $stateParams, MessagesService,
|
|
MeanTorrentConfig, ModalConfirmService, marked, $rootScope) {
|
|
var vm = this;
|
|
|
|
/**
|
|
* If user is not signed in then redirect back home
|
|
*/
|
|
if (!Authentication.user) {
|
|
$state.go('authentication.signin');
|
|
}
|
|
|
|
}
|
|
}());
|