hunk.code_window:   $scope.connect = function() {
       $('#loadConsoleSpinner').show();
       var termWidth = Math.round($('#terminal-container').width() / 8.2);
       var termHeight = 30;
       var command = $scope.formValues.isCustomCommand ?
                       $scope.formValues.customCommand : $scope.formValues.command;
       var execConfig = {
         id: $stateParams.id,
  
hunk.labels: keep keep keep replace keep keep keep keep keep
hunk.after_edit:     var termWidth = Math.floor(($('#terminal-container').width() - 20) / 8.39);
  
hunk.file_path: app/components/containerConsole/containerConsoleController.js
hunk.type: replace
file: angular.module('portainer.helpers')
  .factory('SecretHelper', [function SecretHelperFactory() {
    'use strict';
    return {
      flattenSecret: function(secret) {
        if (secret) {
          return {
            Id: secret.SecretID,
            Name: secret.SecretName,
            FileName: secret.File.Name,
            Uid: secret.File.UID,
            Gid: secret.File.GID,
            Mode: secret.File.Mode
          };
        }
        return {};
      },
      secretConfig: function(secret) {
        if (secret) {
          return {
            SecretID: secret.Id,
            SecretName: secret.Name,
            File: {
              Name: secret.FileName,
              UID: '0',
              GID: '0',
              Mode: 444
            }
          };
        }
        return {};
      }
    };
  }]);
  