hunk.code_window:       Notifications.success('Stack successfully deployed');
         return ResourceControlService.applyResourceControl('stack', name, userId, accessControlData, [])
         .then(function success() {
           $state.go('docker.stacks');
         })
         .catch(function error(err) {
           Notifications.error('Failure', err, 'Unable to apply resource control on the stack');
         });
       })
       .catch(function error(err) {
         Notifications.warning('Deployment error', err.err.data.err);
       })
       .finally(function final() {
  
hunk.labels: keep replace replace replace replace replace replace replace keep keep keep keep keep
hunk.after_edit:       $state.go('docker.stacks');
  
hunk.file_path: app/docker/views/stacks/create/createStackController.js
hunk.type: replace
file: angular.module('portainer', [
    'ui.bootstrap',
    'ui.router',
    'isteven-multi-select',
    'ngCookies',
    'ngSanitize',
    'ngFileUpload',
    'ngMessages',
    'ngResource',
    'angularUtils.directives.dirPagination',
    'LocalStorageModule',
    'angular-jwt',
    'angular-google-analytics',
    'angular-json-tree',
    'angular-loading-bar',
    'angular-clipboard',
    'luegg.directives',
    'portainer.templates',
    'portainer.app',
    'portainer.docker',
    'extension.storidge',
    'rzModule']);
  