hunk.code_window: angular.module('portainer.app')
   .controller('TeamsController', ['$q', '$scope', '$state', 'TeamService', 'UserService', 'ModalService', 'Notifications', 'Authentication',
   function ($q, $scope, $state, TeamService, UserService, ModalService, Notifications, Authentication) {
     $scope.state = {
       actionInProgress: false
     };
  
hunk.labels: keep replace replace keep keep keep
hunk.after_edit: .controller('TeamsController', ['$q', '$scope', '$state', '$sanitize', 'TeamService', 'UserService', 'ModalService', 'Notifications', 'Authentication',
   function ($q, $scope, $state, $sanitize, TeamService, UserService, ModalService, Notifications, Authentication) {
  
hunk.file_path: app/portainer/views/teams/teamsController.js
hunk.type: replace
file: angular.module('extension.storidge')
  .factory('StoridgeClusterService', ['$q', 'Storidge', function StoridgeClusterServiceFactory($q, Storidge) {
    'use strict';
    var service = {};
  
    service.reboot = function() {
      return Storidge.rebootCluster().$promise;
    };
  
    service.shutdown = function() {
      return Storidge.shutdownCluster().$promise;
    };
  
    service.info = function() {
      var deferred = $q.defer();
  
      Storidge.getInfo().$promise
      .then(function success(data) {
        var info = new StoridgeInfoModel(data);
        deferred.resolve(info);
      })
      .catch(function error(err) {
        deferred.reject({ msg: 'Unable to retrieve Storidge information', err: err });
      });
  
      return deferred.promise;
    };
  
    service.version = function() {
      var deferred = $q.defer();
  
      Storidge.getVersion().$promise
      .then(function success(data) {
        var version = data.version;
        deferred.resolve(version);
      })
      .catch(function error(err) {
        deferred.reject({ msg: 'Unable to retrieve Storidge version', err: err });
      });
  
      return deferred.promise;
    };
  
    service.events = function() {
      var deferred = $q.defer();
  
      Storidge.queryEvents().$promise
      .then(function success(data) {
        var events = data.map(function(item) {
          return new StoridgeEventModel(item);
        });
        deferred.resolve(events);
      })
      .catch(function error(err) {
        deferred.reject({ msg: 'Unable to retrieve Storidge events', err: err });
      });
  
      return deferred.promise;
    };
  
    return service;
  }]);
  