mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-10-04 05:06:05 +08:00
Updated all the components to use emits to remove the warnings from the console.
This commit is contained in:
@@ -11,6 +11,8 @@ import { LabeledInput } from '@components/Form/LabeledInput';
|
||||
export default {
|
||||
name: 'CloneVMModal',
|
||||
|
||||
emits: ['close'],
|
||||
|
||||
components: {
|
||||
AsyncButton, Banner, Checkbox, Card, LabeledInput
|
||||
},
|
||||
|
||||
@@ -15,6 +15,8 @@ import CopyToClipboardText from '@shell/components/CopyToClipboardText';
|
||||
export default {
|
||||
name: 'ConfirmRelatedToRemoveDialog',
|
||||
|
||||
emits: ['close'],
|
||||
|
||||
components: {
|
||||
AsyncButton,
|
||||
Banner,
|
||||
|
||||
@@ -11,6 +11,8 @@ import { LabeledInput } from '@components/Form/LabeledInput';
|
||||
export default {
|
||||
name: 'CloneVMModal',
|
||||
|
||||
emits: ['close'],
|
||||
|
||||
components: {
|
||||
AsyncButton, Banner, Checkbox, Card, LabeledInput
|
||||
},
|
||||
|
||||
@@ -8,6 +8,8 @@ import { HCI } from '../types';
|
||||
export default {
|
||||
name: 'HarvesterEnablePassthrough',
|
||||
|
||||
emits: ['close'],
|
||||
|
||||
components: {
|
||||
AsyncButton,
|
||||
Card,
|
||||
|
||||
@@ -8,6 +8,8 @@ import { escapeHtml } from '@shell/utils/string';
|
||||
export default {
|
||||
name: 'HarvesterEnableSriovDevice',
|
||||
|
||||
emits: ['close'],
|
||||
|
||||
components: {
|
||||
LabeledInput,
|
||||
AsyncButton,
|
||||
|
||||
@@ -8,6 +8,8 @@ import { escapeHtml } from '@shell/utils/string';
|
||||
export default {
|
||||
name: 'HarvesterEnableVGpuDevice',
|
||||
|
||||
emits: ['close'],
|
||||
|
||||
components: {
|
||||
AsyncButton,
|
||||
Card,
|
||||
|
||||
@@ -13,6 +13,8 @@ import LabeledSelect from '@shell/components/form/LabeledSelect';
|
||||
export default {
|
||||
name: 'HotplugModal',
|
||||
|
||||
emits: ['close'],
|
||||
|
||||
components: {
|
||||
AsyncButton, Card, LabeledInput, LabeledSelect, Banner
|
||||
},
|
||||
|
||||
@@ -9,6 +9,8 @@ import { LabeledInput } from '@components/Form/LabeledInput';
|
||||
export default {
|
||||
name: 'HarvesterBackupModal',
|
||||
|
||||
emits: ['close'],
|
||||
|
||||
components: {
|
||||
AsyncButton,
|
||||
Card,
|
||||
|
||||
@@ -11,6 +11,8 @@ import { LabeledInput } from '@components/Form/LabeledInput';
|
||||
export default {
|
||||
name: 'HarvesterCloneTemplateModal',
|
||||
|
||||
emits: ['close'],
|
||||
|
||||
components: {
|
||||
AsyncButton,
|
||||
Banner,
|
||||
|
||||
@@ -10,6 +10,8 @@ import { exceptionToErrorsArray } from '@shell/utils/error';
|
||||
export default {
|
||||
name: 'HarvesterEjectCDROMModal',
|
||||
|
||||
emits: ['close'],
|
||||
|
||||
components: {
|
||||
AsyncButton,
|
||||
Card,
|
||||
|
||||
@@ -14,6 +14,8 @@ import { allHash } from '@shell/utils/promise';
|
||||
export default {
|
||||
name: 'HarvesterExportImageDialog',
|
||||
|
||||
emits: ['close'],
|
||||
|
||||
components: {
|
||||
AsyncButton, Banner, Card, LabeledInput, LabeledSelect
|
||||
},
|
||||
|
||||
@@ -9,6 +9,8 @@ import { BadgeState } from '@components/BadgeState';
|
||||
import { ucFirst } from '@shell/utils/string';
|
||||
|
||||
export default {
|
||||
emits: ['close'],
|
||||
|
||||
components: {
|
||||
Card,
|
||||
Checkbox,
|
||||
|
||||
@@ -12,6 +12,8 @@ import LabeledSelect from '@shell/components/form/LabeledSelect';
|
||||
import { HCI } from '../types';
|
||||
|
||||
export default {
|
||||
emits: ['close'],
|
||||
|
||||
components: {
|
||||
AsyncButton, Banner, Card, LabeledSelect
|
||||
},
|
||||
|
||||
@@ -14,6 +14,8 @@ import { HCI } from '../types';
|
||||
export default {
|
||||
name: 'HarvesterRestoreModal',
|
||||
|
||||
emits: ['close'],
|
||||
|
||||
components: {
|
||||
AsyncButton,
|
||||
Banner,
|
||||
|
||||
@@ -9,6 +9,8 @@ import AsyncButton from '@shell/components/AsyncButton';
|
||||
export default {
|
||||
name: 'HarvesterHotUnplugModal',
|
||||
|
||||
emits: ['close'],
|
||||
|
||||
components: {
|
||||
AsyncButton,
|
||||
Card,
|
||||
|
||||
@@ -11,6 +11,8 @@ import { BACKUP_TYPE } from '../config/types';
|
||||
export default {
|
||||
name: 'HarvesterVMSnapshotDialog',
|
||||
|
||||
emits: ['close'],
|
||||
|
||||
components: {
|
||||
AsyncButton,
|
||||
Card,
|
||||
|
||||
@@ -11,6 +11,8 @@ import AsyncButton from '@shell/components/AsyncButton';
|
||||
import LabeledSelect from '@shell/components/form/LabeledSelect';
|
||||
|
||||
export default {
|
||||
emits: ['close'],
|
||||
|
||||
components: {
|
||||
AsyncButton,
|
||||
Banner,
|
||||
|
||||
@@ -5,6 +5,8 @@ import { Card } from '@components/Card';
|
||||
export default {
|
||||
name: 'HarvesterHotUnplugModal',
|
||||
|
||||
emits: ['close'],
|
||||
|
||||
components: { Card },
|
||||
|
||||
props: {
|
||||
|
||||
@@ -5,6 +5,8 @@ import { Card } from '@components/Card';
|
||||
import { Banner } from '@components/Banner';
|
||||
import { exceptionToErrorsArray } from '@shell/utils/error';
|
||||
export default {
|
||||
emits: ['close'],
|
||||
|
||||
components: {
|
||||
Card,
|
||||
AsyncButton,
|
||||
|
||||
@@ -13,6 +13,9 @@ import { STORAGE_CLASS } from '@shell/config/types';
|
||||
|
||||
export default {
|
||||
name: 'HarvesterRestoreSnapshotDialog',
|
||||
|
||||
emits: ['close'],
|
||||
|
||||
components: {
|
||||
AsyncButton,
|
||||
Banner,
|
||||
|
||||
@@ -7,6 +7,9 @@ import AsyncButton from '@shell/components/AsyncButton';
|
||||
import { LabeledInput } from '@components/Form/LabeledInput';
|
||||
export default {
|
||||
name: 'HarvesterSnapshotDialog',
|
||||
|
||||
emits: ['close'],
|
||||
|
||||
components: {
|
||||
AsyncButton, Banner, Card, LabeledInput
|
||||
},
|
||||
|
||||
@@ -9,6 +9,9 @@ import { Checkbox } from '@components/Form/Checkbox';
|
||||
|
||||
export default {
|
||||
name: 'HarvesterPvcCloneDialog',
|
||||
|
||||
emits: ['close'],
|
||||
|
||||
components: {
|
||||
AsyncButton, Banner, Card, LabeledInput, Checkbox
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user