mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-11-22 16:47:34 +08:00
Updated all the components to use emits to remove the warnings from the console.
This commit is contained in:
1 parent
7ea0fc54e1
commit
20584d293a
75 files changed
+163
No files matched your search
+2
@@ -10,6 +10,8 @@ import ModalWithCard from '@shell/components/ModalWithCard';
|
||||
const _NEW = '_NEW';
|
||||
|
||||
export default {
|
||||
emits: ['update:user', 'update:newUser'],
|
||||
|
||||
components: {
|
||||
LabeledInput,
|
||||
LabeledSelect,
|
||||
|
||||
+2
@@ -13,6 +13,8 @@ import { ACCESS_CREDENTIALS } from '../../../config/harvester-map';
|
||||
const _NEW = '_NEW';
|
||||
|
||||
export default {
|
||||
emits: ['update:value'],
|
||||
|
||||
components: {
|
||||
Banner,
|
||||
InfoBox
|
||||
|
||||
+3
@@ -4,6 +4,9 @@ import AccessCredentialsUsers from '../AccessCredentialsUsers';
|
||||
|
||||
export default {
|
||||
name: 'HarvesterEditVolume',
|
||||
|
||||
emits: ['update', 'update:newUser'],
|
||||
|
||||
components: { Password, AccessCredentialsUsers },
|
||||
|
||||
props: {
|
||||
|
||||
+3
@@ -4,6 +4,9 @@ import AccessCredentialsUsers from '../AccessCredentialsUsers';
|
||||
|
||||
export default {
|
||||
name: 'HarvesterEditVolume',
|
||||
|
||||
emits: ['update', 'update:newUser'],
|
||||
|
||||
components: { SSHKey, AccessCredentialsUsers },
|
||||
|
||||
props: {
|
||||
|
||||
+2
@@ -13,6 +13,8 @@ const _NONE = '_NONE';
|
||||
export default {
|
||||
components: { YamlEditor, LabeledSelect },
|
||||
|
||||
emits: ['updateTemplateId', 'show', 'update'],
|
||||
|
||||
props: {
|
||||
mode: {
|
||||
type: String,
|
||||
|
||||
@@ -13,6 +13,8 @@ import DataTemplate from './DataTemplate';
|
||||
const _NEW = '_NEW';
|
||||
|
||||
export default {
|
||||
emits: ['updateUserData', 'updateNetworkData', 'updateDataTemplateId'],
|
||||
|
||||
components: {
|
||||
DataTemplate, YamlEditor, LabeledInput, ModalWithCard
|
||||
},
|
||||
|
||||
@@ -4,6 +4,9 @@ import InputOrDisplay from '@shell/components/InputOrDisplay';
|
||||
|
||||
export default {
|
||||
name: 'HarvesterEditCpuMemory',
|
||||
|
||||
emits: ['updateCpuMemory'],
|
||||
|
||||
components: { UnitInput, InputOrDisplay },
|
||||
|
||||
props: {
|
||||
|
||||
@@ -29,6 +29,9 @@ const MODEL = [{
|
||||
|
||||
export default {
|
||||
name: 'HarvesterEditNetwork',
|
||||
|
||||
emits: ['update'],
|
||||
|
||||
components: {
|
||||
LabeledInput, LabeledSelect, InputOrDisplay
|
||||
},
|
||||
|
||||
@@ -3,6 +3,9 @@ import UnitInput from '@shell/components/form/UnitInput';
|
||||
|
||||
export default {
|
||||
name: 'HarvesterReserved',
|
||||
|
||||
emits: ['updateReserved'],
|
||||
|
||||
components: { UnitInput },
|
||||
|
||||
props: {
|
||||
|
||||
@@ -15,6 +15,8 @@ import { HCI } from '../../types';
|
||||
const _NEW = '_NEW';
|
||||
|
||||
export default {
|
||||
emits: ['update:sshKey'],
|
||||
|
||||
components: {
|
||||
LabeledInput,
|
||||
ModalWithCard,
|
||||
|
||||
@@ -19,6 +19,8 @@ import { PRODUCT_NAME as HARVESTER_PRODUCT } from '../../../config/harvester';
|
||||
import { HCI } from '../../../types';
|
||||
|
||||
export default {
|
||||
emits: ['update:value'],
|
||||
|
||||
components: {
|
||||
Banner, BadgeStateFormatter, Sortable, InfoBox, LabeledInput, UnitInput, LabeledSelect, ModalWithCard
|
||||
},
|
||||
|
||||
@@ -6,6 +6,9 @@ import { VOLUME_TYPE, InterfaceOption } from '../../../../config/harvester-map';
|
||||
|
||||
export default {
|
||||
name: 'HarvesterEditContainer',
|
||||
|
||||
emits: ['update'],
|
||||
|
||||
components: {
|
||||
LabeledInput, LabeledSelect, InputOrDisplay
|
||||
},
|
||||
|
||||
@@ -13,6 +13,9 @@ import { VOLUME_TYPE, InterfaceOption } from '../../../../config/harvester-map';
|
||||
|
||||
export default {
|
||||
name: 'HarvesterEditExisting',
|
||||
|
||||
emits: ['update'],
|
||||
|
||||
components: {
|
||||
UnitInput, LabeledInput, LabeledSelect, InputOrDisplay
|
||||
},
|
||||
|
||||
@@ -12,6 +12,8 @@ import { VOLUME_TYPE, InterfaceOption } from '../../../../config/harvester-map';
|
||||
export default {
|
||||
name: 'HarvesterEditVMImage',
|
||||
|
||||
emits: ['update'],
|
||||
|
||||
components: {
|
||||
UnitInput, LabeledInput, LabeledSelect, InputOrDisplay
|
||||
},
|
||||
|
||||
@@ -11,6 +11,9 @@ import { VOLUME_TYPE, InterfaceOption } from '../../../../config/harvester-map';
|
||||
|
||||
export default {
|
||||
name: 'HarvesterEditVolume',
|
||||
|
||||
emits: ['update'],
|
||||
|
||||
components: {
|
||||
InputOrDisplay, Loading, LabeledInput, LabeledSelect, UnitInput,
|
||||
},
|
||||
|
||||
@@ -45,6 +45,8 @@ import MessageLink from '@shell/components/MessageLink';
|
||||
export default {
|
||||
name: 'HarvesterEditVM',
|
||||
|
||||
emits: ['update:value'],
|
||||
|
||||
components: {
|
||||
Tab,
|
||||
Tabbed,
|
||||
|
||||
Reference in new issue
Block a user