Fix events stuff with awful hacks
This commit is contained in:
parent
b48a4e92e1
commit
ab49c181e7
8 changed files with 60 additions and 52 deletions
|
@ -22,7 +22,7 @@ var app = angular.module('hostr', [
|
|||
|
||||
app.factory('FileService', ['$resource', '$cacheFactory', FileService.factory]);
|
||||
app.factory('UserService', ['$resource', UserService.factory]);
|
||||
app.factory('EventService', ['$rootScope', ReconnectingWebSocket, EventService.factory]);
|
||||
app.factory('EventService', ['$rootScope', 'WebSocket', EventService.factory]);
|
||||
app.factory('TransactionService', ['$resource', '$cacheFactory', TransactionService.factory]);
|
||||
app.factory('SettingService', ['$http', SettingService.factory]);
|
||||
|
||||
|
@ -38,7 +38,6 @@ app.directive('searchShortcut', ['$document', searchShortcut]);
|
|||
app.directive('stripeSubscribe', ['$http', stripeSubscribe]);
|
||||
|
||||
app.config(['$routeProvider', '$locationProvider', '$httpProvider', '$tooltipProvider', function($routeProvider, $locationProvider, $httpProvider, $tooltipProvider) {
|
||||
|
||||
$tooltipProvider.defaults.template = '/jspm_packages/npm/angular-strap@2.1.2/src/tooltip/tooltip.tpl.html';
|
||||
|
||||
if (typeof window.user !== 'undefined') {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
export class FilesController {
|
||||
constructor($scope, UserService, files) {
|
||||
constructor($scope, UserService, EventService, files) {
|
||||
$scope.$root.user = UserService.get();
|
||||
files.$promise.then(function() {
|
||||
$scope.$root.loadingView = false;
|
||||
|
@ -22,7 +22,7 @@ export class FilesController {
|
|||
};
|
||||
}
|
||||
}
|
||||
FilesController.$inject = ['$scope', 'UserService', 'files'];
|
||||
FilesController.$inject = ['$scope', 'UserService', 'EventService', 'files'];
|
||||
|
||||
export class FileController {
|
||||
constructor ($scope, $rootScope, $routeParams, ReconnectingWebSocket, file) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue