mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-10-01 03:36:04 +08:00
Replace resource prop with resourceType prop - shell change: https://github.com/rancher/dashboard/pull/11971
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
This commit is contained in:
@@ -10,7 +10,7 @@ export default {
|
||||
components: { ButtonDropdown },
|
||||
|
||||
props: {
|
||||
resource: {
|
||||
resourceType: {
|
||||
type: Object,
|
||||
required: true,
|
||||
default: () => {
|
||||
@@ -23,7 +23,7 @@ export default {
|
||||
...mapGetters({ t: 'i18n/t' }),
|
||||
|
||||
isOff() {
|
||||
return this.resource.stateDisplay === OFF;
|
||||
return this.resourceType.stateDisplay === OFF;
|
||||
},
|
||||
|
||||
options() {
|
||||
@@ -46,10 +46,10 @@ export default {
|
||||
},
|
||||
|
||||
show(type) {
|
||||
let uid = this.resource.metadata?.ownerReferences?.[0]?.uid;
|
||||
let uid = this.resourceType.metadata?.ownerReferences?.[0]?.uid;
|
||||
|
||||
if (uid === undefined) {
|
||||
uid = this.resource.metadata.uid;
|
||||
uid = this.resourceType.metadata.uid;
|
||||
}
|
||||
|
||||
const host = window.location.host;
|
||||
|
||||
Reference in New Issue
Block a user