diff --git a/shell/components/ResourceTable.vue b/shell/components/ResourceTable.vue index 69de7993d0..dfd451e616 100644 --- a/shell/components/ResourceTable.vue +++ b/shell/components/ResourceTable.vue @@ -317,7 +317,6 @@ export default { // add custom table columns provided by the extensions ExtensionPoint.TABLE_COL hook // gate it so that we prevent errors on older versions of dashboard if (this.$store.$plugin?.getUIConfig) { - // const extensionCols = getApplicableExtensionEnhancements(this, ExtensionPoint.TABLE_COL, TableColumnLocation.RESOURCE, this.$route); // Try and insert the columns before the Age column diff --git a/shell/core/types.ts b/shell/core/types.ts index 31a3965930..c1df958769 100644 --- a/shell/core/types.ts +++ b/shell/core/types.ts @@ -130,20 +130,8 @@ export type Card = { component: Function; }; -export type TableColumn = { - name?: string; - label?: string; - labelKey?: string; - sort?: string | string[]; - search?: string | string[]; - value?: string; - getValue?: () => any; - width?: number; - default?: string; - formatter?: string; - canBeVariable?: boolean; - defaultSort?: boolean; -}; +// Duplication of HeaderOptions? +export type TableColumn = any; /** Definition of a tab (options that can be passed when defining an extension tab enhancement) */ export type Tab = { @@ -341,7 +329,7 @@ export interface HeaderOptions { formatterOpts?: any; /** - * Provide a function which accets a row and returns the value that should be displayed in the column + * Provide a function which accepts a row and returns the value that should be displayed in the column * @param row This can be any value which represents the row * @returns Can return {@link string | number | null | undefined} to display in the column */