hunk.code_window:   showEditor() {
       this.state.showEditorTab = true;
     }
     async uiCanExit() {
       if (this.edgeJob.FileContent !== this.oldFileContent && this.state.isEditorDirty) {
         return this.ModalService.confirmWebEditorDiscard();
       }
     }
  
hunk.labels: keep keep keep keep keep replace keep keep keep
hunk.after_edit:     if (this.edgeJob && this.edgeJob.FileContent !== this.oldFileContent && this.state.isEditorDirty) {
  
hunk.file_path: app/edge/views/edge-jobs/edgeJob/edgeJobController.js
hunk.type: replace
file: /**
   * JS reference of portainer.go#EndpointType iota
   */
  export const PortainerEndpointTypes = Object.freeze({
    // DockerEnvironment represents an endpoint connected to a Docker environment
    DockerEnvironment: 1,
    // AgentOnDockerEnvironment represents an endpoint connected to a Portainer agent deployed on a Docker environment
    AgentOnDockerEnvironment: 2,
    // AzureEnvironment represents an endpoint connected to an Azure environment
    AzureEnvironment: 3,
    // EdgeAgentOnDockerEnvironment represents an endpoint connected to an Edge agent deployed on a Docker environment
    EdgeAgentOnDockerEnvironment: 4,
    // KubernetesLocalEnvironment represents an endpoint connected to a local Kubernetes environment
    KubernetesLocalEnvironment: 5,
    // AgentOnKubernetesEnvironment represents an endpoint connected to a Portainer agent deployed on a Kubernetes environment
    AgentOnKubernetesEnvironment: 6,
    // EdgeAgentOnKubernetesEnvironment represents an endpoint connected to an Edge agent deployed on a Kubernetes environment
    EdgeAgentOnKubernetesEnvironment: 7,
  });
  
  /**
   * JS reference of endpoint_create.go#EndpointCreationType iota
   */
  export const PortainerEndpointCreationTypes = Object.freeze({
    LocalDockerEnvironment: 1,
    AgentEnvironment: 2,
    AzureEnvironment: 3,
    EdgeAgentEnvironment: 4,
    LocalKubernetesEnvironment: 5,
  });
  
  export const PortainerEndpointConnectionTypes = Object.freeze({
    DOCKER_LOCAL: 1,
    KUBERNETES_LOCAL: 2,
    REMOTE: 3,
    AZURE: 4,
    AGENT: 5,
    EDGE: 6,
  });
  