Skip to content

Fix $extension usage in older rancher systems #16952

@aalves08

Description

@aalves08

Setup

  • Rancher version: 2.12.7
  • Rancher UI Extensions: Kubewarden 4.1.0
  • Browser type & version: n/a

Describe the bug

Root cause for rancher/kubewarden-ui#1444 is that SortableTable uses $extension:

const pluginFormatter = this.$extension?.getDynamic('formatters', c.formatter);

but there's no this.$extension in 2.12.7

To Reproduce

Follow repro steps in rancher/kubewarden-ui#1444

Result
Some table cols are not displayed (ones using a formatter)

Expected Result

All table cols should display fine

Screenshots

Additional context

Metadata

Metadata

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions