diff --git a/shell/components/ResourceDetail/index.vue b/shell/components/ResourceDetail/index.vue index 5d9fc077dec..92de05113ad 100644 --- a/shell/components/ResourceDetail/index.vue +++ b/shell/components/ResourceDetail/index.vue @@ -310,7 +310,7 @@ export default { }), {}); }, isFullPageOverride() { - return this.isView && this.value.fullDetailPageOverride; + return this.isView && this.value.fullDetailPageOverride && !this.isYaml; } }, diff --git a/shell/models/provisioning.cattle.io.cluster.js b/shell/models/provisioning.cattle.io.cluster.js index e51636fb655..8d5125e5e7d 100644 --- a/shell/models/provisioning.cattle.io.cluster.js +++ b/shell/models/provisioning.cattle.io.cluster.js @@ -9,7 +9,6 @@ import { get, set } from '@shell/utils/object'; import { sortBy } from '@shell/utils/sort'; import { ucFirst } from '@shell/utils/string'; import { compare } from '@shell/utils/version'; -import { AS, MODE, _VIEW, _YAML } from '@shell/config/query-params'; import { HARVESTER_NAME as HARVESTER } from '@shell/config/features'; import { CAPI as CAPI_ANNOTATIONS, NODE_ARCHITECTURE } from '@shell/config/labels-annotations'; import { KEV1 } from '@shell/models/management.cattle.io.kontainerdriver'; @@ -260,26 +259,6 @@ export default class ProvCluster extends SteveModel { } } - goToViewYaml() { - let location; - - if ( !this.isRke2 ) { - location = this.mgmt?.detailLocation; - } - - if ( !location ) { - location = this.detailLocation; - } - - location.query = { - ...location.query, - [MODE]: _VIEW, - [AS]: _YAML - }; - - this.currentRouter().push(location); - } - get canDelete() { return super.canDelete && this.stateObj?.name !== 'removing'; }