hunk.code_window:         this.state.expandAll = true;
         }
       };
       this.$onInit = function () {
         this.setDefaults();
         this.prepareTableFromDataset();
  
hunk.labels: keep keep keep add keep keep keep
hunk.after_edit:     this.onDataRefresh = function () {
         var storedExpandedItems = DatatableService.getDataTableExpandedItems(this.tableKey);
         if (storedExpandedItems !== null) {
           this.expandItems(storedExpandedItems);
         }
       };
  
hunk.file_path: app/docker/components/datatables/services-datatable/servicesDatatableController.js
hunk.type: add
file: import angular from 'angular';
  
  angular.module('portainer.edge').factory('EdgeTemplates', function EdgeStacksFactory($resource, API_ENDPOINT_EDGE_TEMPLATES) {
    return $resource(
      API_ENDPOINT_EDGE_TEMPLATES,
      {},
      {
        query: { method: 'GET', isArray: true },
      }
    );
  });
  