hunk.code_window: 	if err != nil {
   		log.Debug().Err(err).Msg("unable to fetch metrics: leaving metrics collection disabled.")
   		return
   	}
   	endpoint.Kubernetes.Configuration.UseServerMetrics = true
   	endpoint.Kubernetes.Flags.IsServerMetricsDetected = true
   	err = endpointService.UpdateEndpoint(
   		portainer.EndpointID(endpoint.ID),
   		endpoint,
   	)
   	if err != nil {
   		log.Debug().Err(err).Msg("unable to enable UseServerMetrics inside the database")
   		return
   	}
   }
  
hunk.labels: keep keep keep keep keep replace replace replace replace replace keep keep keep keep keep
hunk.file_path: api/internal/endpointutils/endpointutils.go
hunk.type: replace
file: import angular from 'angular';
  import UsersDatatableController from './usersDatatableController';
  
  angular.module('portainer.app').component('usersDatatable', {
    templateUrl: './usersDatatable.html',
    controller: UsersDatatableController,
    bindings: {
      titleText: '@',
      titleIcon: '@',
      dataset: '<',
      tableKey: '@',
      orderBy: '@',
      reverseOrder: '<',
      removeAction: '<',
      authenticationMethod: '<',
      isAdmin: '<',
    },
  });
  