hunk.code_window:       value: |
           # Welcome!
           The issue tracker is for reporting bugs. If you have an [idea for a new feature](https://github.com/samdulam/dashy/discussions/categories/ideas) or a [general question about Portainer](https://github.com/samdulam/dashy/discussions/categories/help) please post in our [GitHub Discussions](https://github.com/samdulam/dashy/discussions).
           You can also ask for help in our [community Slack channel](https://join.slack.com/t/portainer/shared_invite/zt-txh3ljab-52QHTyjCqbe5RibC2lcjKA).
  
hunk.labels: keep keep keep replace keep keep keep
hunk.after_edit:         The issue tracker is for reporting bugs. If you have an [idea for a new feature](https://github.com/orgs/portainer/discussions/categories/ideas) or a [general question about Portainer](https://github.com/orgs/portainer/discussions/categories/help) please post in our [GitHub Discussions](https://github.com/orgs/portainer/discussions).
  
hunk.file_path: .github/ISSUE_TEMPLATE/bug_report.yml
hunk.type: replace
file: import _ from 'lodash-es';
  import { confirmDelete } from '@@/modals/confirm';
  
  export class EdgeJobsViewController {
    /* @ngInject */
    constructor($async, $state, EdgeJobService, Notifications) {
      this.$async = $async;
      this.$state = $state;
      this.EdgeJobService = EdgeJobService;
      this.Notifications = Notifications;
  
      this.removeAction = this.removeAction.bind(this);
      this.deleteJobsAsync = this.deleteJobsAsync.bind(this);
      this.deleteJobs = this.deleteJobs.bind(this);
    }
  
    removeAction(selectedItems) {
      confirmDelete('Do you want to remove the selected edge job(s)?').then((confirmed) => {
        if (!confirmed) {
          return;
        }
        this.deleteJobs(selectedItems);
      });
    }
  
    deleteJobs(edgeJobs) {
      return this.$async(this.deleteJobsAsync, edgeJobs);
    }
  
    async deleteJobsAsync(edgeJobs) {
      for (let edgeJob of edgeJobs) {
        try {
          await this.EdgeJobService.remove(edgeJob.Id);
          this.Notifications.success('Edge job successfully removed', edgeJob.Name);
          _.remove(this.edgeJobs, edgeJob);
        } catch (err) {
          this.Notifications.error('Failure', err, 'Unable to remove Edge job ' + edgeJob.Name);
        }
      }
  
      this.$state.reload();
    }
  
    async $onInit() {
      try {
        const edgeJobs = await this.EdgeJobService.edgeJobs();
        this.edgeJobs = edgeJobs;
      } catch (err) {
        this.Notifications.error('Failure', err, 'Unable to retrieve Edge jobs');
        this.edgeJobs = [];
      }
    }
  }
  