Skip to content

Conversation

@rak-phillip
Copy link

@rak-phillip rak-phillip commented Jan 17, 2024

Summary

contributes to rancher#10104

This replaces the usage of Vue.extend with defineComponent in Harvester. defineComponent provides better type inference, improved TypeScript support, and will be the recommended way to define components when Dashboard migrates to Vue 3.

Occurred changes and/or fixed issues

  • Replaced instances of Vue.extend with defineComponent for components located under pkg/harvester
  • Refactored code as necessary to maintain to take advantage of the better TypeScript support

Areas or cases that should be tested

This has a broad reach across dashboard. Ideally, we will want to test multiple cases where the following components have been altered:

  • projectsnamespaces.vue

see original PR in dashboard repo rancher#10248

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
Copy link

@mantis-toboggan-md mantis-toboggan-md left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@a110605 a110605 added the Enhancement minor or greater UI enhancement label Aug 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Enhancement minor or greater UI enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants