text: import { clone } from '@/utils/object';
  import { HCI } from '@/config/types';
  import Resource from '@/plugins/steve/resource-class';
  
  export default class HciConfigMap extends Resource {
    get detailLocation() {
      const detailLocation = clone(this._detailLocation);
  
      detailLocation.params.resource = HCI.CLOUD_TEMPLATE;
  
      return detailLocation;
    }
  
    get doneOverride() {
      const detailLocation = clone(this._detailLocation);
  
      delete detailLocation.params.namespace;
      delete detailLocation.params.id;
      detailLocation.params.resource = HCI.CLOUD_TEMPLATE;
      detailLocation.name = 'c-cluster-product-resource';
  
      return detailLocation;
    }
  
    get parentNameOverride() {
      return this.$rootGetters['i18n/t'](`typeLabel."${ HCI.CLOUD_TEMPLATE }"`, { count: 1 })?.trim();
    }
  
    get parentLocationOverride() {
      return this.doneOverride;
    }
  }
  