mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-02-04 15:01:46 +00:00
Set inheritAttrs=false in Components using CruResource
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
This commit is contained in:
parent
8595e653e4
commit
ac6388a9a2
@ -36,6 +36,8 @@ export default {
|
|||||||
|
|
||||||
mixins: [CreateEditView, VM_MIXIN],
|
mixins: [CreateEditView, VM_MIXIN],
|
||||||
|
|
||||||
|
inheritAttrs: false,
|
||||||
|
|
||||||
props: {
|
props: {
|
||||||
value: {
|
value: {
|
||||||
type: Object,
|
type: Object,
|
||||||
|
|||||||
@ -36,6 +36,8 @@ export default {
|
|||||||
|
|
||||||
mixins: [CreateEditView, VM_MIXIN],
|
mixins: [CreateEditView, VM_MIXIN],
|
||||||
|
|
||||||
|
inheritAttrs: false,
|
||||||
|
|
||||||
props: {
|
props: {
|
||||||
value: {
|
value: {
|
||||||
type: Object,
|
type: Object,
|
||||||
|
|||||||
@ -9,6 +9,8 @@ export default {
|
|||||||
|
|
||||||
mixins: [CreateEditView],
|
mixins: [CreateEditView],
|
||||||
|
|
||||||
|
inheritAttrs: false,
|
||||||
|
|
||||||
props: {
|
props: {
|
||||||
value: {
|
value: {
|
||||||
type: Object,
|
type: Object,
|
||||||
|
|||||||
@ -14,6 +14,8 @@ export default {
|
|||||||
name: 'EditAddonVcluster',
|
name: 'EditAddonVcluster',
|
||||||
components: { LabeledInput, RadioGroup },
|
components: { LabeledInput, RadioGroup },
|
||||||
|
|
||||||
|
inheritAttrs: false,
|
||||||
|
|
||||||
props: {
|
props: {
|
||||||
value: {
|
value: {
|
||||||
type: Object,
|
type: Object,
|
||||||
|
|||||||
@ -25,6 +25,8 @@ export default {
|
|||||||
|
|
||||||
mixins: [CreateEditView],
|
mixins: [CreateEditView],
|
||||||
|
|
||||||
|
inheritAttrs: false,
|
||||||
|
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
config: this.value.data?.cloudInit || '',
|
config: this.value.data?.cloudInit || '',
|
||||||
|
|||||||
@ -55,6 +55,7 @@ export default {
|
|||||||
MessageLink,
|
MessageLink,
|
||||||
},
|
},
|
||||||
mixins: [CreateEditView],
|
mixins: [CreateEditView],
|
||||||
|
inheritAttrs: false,
|
||||||
props: {
|
props: {
|
||||||
value: {
|
value: {
|
||||||
type: Object,
|
type: Object,
|
||||||
|
|||||||
@ -25,6 +25,8 @@ export default {
|
|||||||
|
|
||||||
mixins: [CreateEditView],
|
mixins: [CreateEditView],
|
||||||
|
|
||||||
|
inheritAttrs: false,
|
||||||
|
|
||||||
props: {
|
props: {
|
||||||
value: {
|
value: {
|
||||||
type: Object,
|
type: Object,
|
||||||
|
|||||||
@ -31,6 +31,8 @@ export default {
|
|||||||
|
|
||||||
mixins: [CreateEditView],
|
mixins: [CreateEditView],
|
||||||
|
|
||||||
|
inheritAttrs: false,
|
||||||
|
|
||||||
async fetch() {
|
async fetch() {
|
||||||
await this.$store.dispatch('harvester/findAll', { type: SECRET });
|
await this.$store.dispatch('harvester/findAll', { type: SECRET });
|
||||||
},
|
},
|
||||||
|
|||||||
@ -32,6 +32,8 @@ export default {
|
|||||||
|
|
||||||
mixins: [CreateEditView],
|
mixins: [CreateEditView],
|
||||||
|
|
||||||
|
inheritAttrs: false,
|
||||||
|
|
||||||
props: {
|
props: {
|
||||||
mode: {
|
mode: {
|
||||||
type: String,
|
type: String,
|
||||||
|
|||||||
@ -30,6 +30,8 @@ export default {
|
|||||||
|
|
||||||
mixins: [CreateEditView],
|
mixins: [CreateEditView],
|
||||||
|
|
||||||
|
inheritAttrs: false,
|
||||||
|
|
||||||
async fetch() {
|
async fetch() {
|
||||||
const inStore = this.$store.getters['currentProduct'].inStore;
|
const inStore = this.$store.getters['currentProduct'].inStore;
|
||||||
const alertmanagerConfigId = this.value.id;
|
const alertmanagerConfigId = this.value.id;
|
||||||
|
|||||||
@ -30,6 +30,8 @@ export default {
|
|||||||
|
|
||||||
mixins: [CreateEditView],
|
mixins: [CreateEditView],
|
||||||
|
|
||||||
|
inheritAttrs: false,
|
||||||
|
|
||||||
props: {
|
props: {
|
||||||
value: {
|
value: {
|
||||||
type: Object,
|
type: Object,
|
||||||
|
|||||||
@ -31,6 +31,8 @@ export default {
|
|||||||
|
|
||||||
mixins: [CreateEditView],
|
mixins: [CreateEditView],
|
||||||
|
|
||||||
|
inheritAttrs: false,
|
||||||
|
|
||||||
async fetch() {
|
async fetch() {
|
||||||
const hash = await allHash({
|
const hash = await allHash({
|
||||||
settings: this.$store.dispatch('harvester/findAll', { type: HCI.SETTING }),
|
settings: this.$store.dispatch('harvester/findAll', { type: HCI.SETTING }),
|
||||||
|
|||||||
@ -39,6 +39,8 @@ export default {
|
|||||||
|
|
||||||
mixins: [CreateEditView],
|
mixins: [CreateEditView],
|
||||||
|
|
||||||
|
inheritAttrs: false,
|
||||||
|
|
||||||
async fetch() {
|
async fetch() {
|
||||||
if ( this.isCloud ) {
|
if ( this.isCloud ) {
|
||||||
this.nodeDrivers = await this.$store.dispatch('management/findAll', { type: MANAGEMENT.NODE_DRIVER });
|
this.nodeDrivers = await this.$store.dispatch('management/findAll', { type: MANAGEMENT.NODE_DRIVER });
|
||||||
|
|||||||
@ -20,6 +20,8 @@ export default {
|
|||||||
|
|
||||||
mixins: [CreateEditView],
|
mixins: [CreateEditView],
|
||||||
|
|
||||||
|
inheritAttrs: false,
|
||||||
|
|
||||||
data() {
|
data() {
|
||||||
const t = this.$store.getters['i18n/t'];
|
const t = this.$store.getters['i18n/t'];
|
||||||
const setting =
|
const setting =
|
||||||
|
|||||||
@ -41,6 +41,8 @@ export default {
|
|||||||
|
|
||||||
mixins: [CreateEditView],
|
mixins: [CreateEditView],
|
||||||
|
|
||||||
|
inheritAttrs: false,
|
||||||
|
|
||||||
data() {
|
data() {
|
||||||
const reclaimPolicyOptions = [{
|
const reclaimPolicyOptions = [{
|
||||||
label: this.t('storageClass.customize.reclaimPolicy.delete'),
|
label: this.t('storageClass.customize.reclaimPolicy.delete'),
|
||||||
|
|||||||
@ -27,6 +27,8 @@ const rawORqcow2 = 'raw_qcow2';
|
|||||||
export default {
|
export default {
|
||||||
name: 'EditImage',
|
name: 'EditImage',
|
||||||
|
|
||||||
|
inheritAttrs: false,
|
||||||
|
|
||||||
emits: ['update:value'],
|
emits: ['update:value'],
|
||||||
|
|
||||||
components: {
|
components: {
|
||||||
|
|||||||
@ -53,6 +53,8 @@ export default {
|
|||||||
|
|
||||||
mixins: [CreateEditView, VM_MIXIN],
|
mixins: [CreateEditView, VM_MIXIN],
|
||||||
|
|
||||||
|
inheritAttrs: false,
|
||||||
|
|
||||||
props: {
|
props: {
|
||||||
value: {
|
value: {
|
||||||
type: Object,
|
type: Object,
|
||||||
|
|||||||
@ -38,6 +38,8 @@ export default {
|
|||||||
|
|
||||||
mixins: [CreateEditView],
|
mixins: [CreateEditView],
|
||||||
|
|
||||||
|
inheritAttrs: false,
|
||||||
|
|
||||||
async fetch() {
|
async fetch() {
|
||||||
const inStore = this.$store.getters['currentProduct'].inStore;
|
const inStore = this.$store.getters['currentProduct'].inStore;
|
||||||
const _hash = {
|
const _hash = {
|
||||||
|
|||||||
@ -24,6 +24,8 @@ export default {
|
|||||||
|
|
||||||
mixins: [CreateEditView],
|
mixins: [CreateEditView],
|
||||||
|
|
||||||
|
inheritAttrs: false,
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
volume() {
|
volume() {
|
||||||
return this.volumes.find((V) => {
|
return this.volumes.find((V) => {
|
||||||
|
|||||||
@ -78,6 +78,8 @@ export default {
|
|||||||
|
|
||||||
mixins: [CreateEditView, VM_MIXIN],
|
mixins: [CreateEditView, VM_MIXIN],
|
||||||
|
|
||||||
|
inheritAttrs: false,
|
||||||
|
|
||||||
props: {
|
props: {
|
||||||
value: {
|
value: {
|
||||||
type: Object,
|
type: Object,
|
||||||
|
|||||||
@ -26,6 +26,8 @@ export default {
|
|||||||
|
|
||||||
mixins: [CreateEditView],
|
mixins: [CreateEditView],
|
||||||
|
|
||||||
|
inheritAttrs: false,
|
||||||
|
|
||||||
async fetch() {
|
async fetch() {
|
||||||
const inStore = this.$store.getters['currentProduct'].inStore;
|
const inStore = this.$store.getters['currentProduct'].inStore;
|
||||||
|
|
||||||
|
|||||||
@ -41,6 +41,8 @@ export default {
|
|||||||
|
|
||||||
mixins: [CreateEditView],
|
mixins: [CreateEditView],
|
||||||
|
|
||||||
|
inheritAttrs: false,
|
||||||
|
|
||||||
props: {
|
props: {
|
||||||
value: {
|
value: {
|
||||||
type: Object,
|
type: Object,
|
||||||
|
|||||||
@ -27,6 +27,9 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
mixins: [CreateEditView, FormValidation],
|
mixins: [CreateEditView, FormValidation],
|
||||||
|
|
||||||
|
inheritAttrs: false,
|
||||||
|
|
||||||
async fetch() {
|
async fetch() {
|
||||||
if ( this.$store.getters['management/canList'](MANAGEMENT.POD_SECURITY_POLICY_TEMPLATE) ) {
|
if ( this.$store.getters['management/canList'](MANAGEMENT.POD_SECURITY_POLICY_TEMPLATE) ) {
|
||||||
this.allPSPs = await this.$store.dispatch('management/findAll', { type: MANAGEMENT.POD_SECURITY_POLICY_TEMPLATE });
|
this.allPSPs = await this.$store.dispatch('management/findAll', { type: MANAGEMENT.POD_SECURITY_POLICY_TEMPLATE });
|
||||||
|
|||||||
@ -22,6 +22,8 @@ export default {
|
|||||||
|
|
||||||
mixins: [CreateEditView],
|
mixins: [CreateEditView],
|
||||||
|
|
||||||
|
inheritAttrs: false,
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
doneLocationOverride() {
|
doneLocationOverride() {
|
||||||
return this.value.doneOverride;
|
return this.value.doneOverride;
|
||||||
|
|||||||
@ -43,6 +43,8 @@ export default {
|
|||||||
|
|
||||||
mixins: [CreateEditView],
|
mixins: [CreateEditView],
|
||||||
|
|
||||||
|
inheritAttrs: false,
|
||||||
|
|
||||||
data() {
|
data() {
|
||||||
const originNics = clone(this.value?.spec?.uplink?.nics || []);
|
const originNics = clone(this.value?.spec?.uplink?.nics || []);
|
||||||
|
|
||||||
|
|||||||
@ -25,6 +25,8 @@ export default {
|
|||||||
Checkbox, CruResource, LabeledSelect, LabeledInput, RadioGroup, UpgradeInfo
|
Checkbox, CruResource, LabeledSelect, LabeledInput, RadioGroup, UpgradeInfo
|
||||||
},
|
},
|
||||||
|
|
||||||
|
inheritAttrs: false,
|
||||||
|
|
||||||
async fetch() {
|
async fetch() {
|
||||||
await this.$store.dispatch('harvester/findAll', { type: HCI.IMAGE });
|
await this.$store.dispatch('harvester/findAll', { type: HCI.IMAGE });
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user