chore(xo-web/backup-ng): remove useless computed (#3317)
This commit is contained in:
parent
4cad820271
commit
235da199f9
@ -4,7 +4,7 @@ import SmartBackupPreview from 'smart-backup'
|
|||||||
import { connectStore } from 'utils'
|
import { connectStore } from 'utils'
|
||||||
import { createGetObjectsOfType } from 'selectors'
|
import { createGetObjectsOfType } from 'selectors'
|
||||||
import { get } from 'lodash'
|
import { get } from 'lodash'
|
||||||
import { injectState, provideState } from '@julien-f/freactal'
|
import { injectState } from '@julien-f/freactal'
|
||||||
import { Select } from 'form'
|
import { Select } from 'form'
|
||||||
import { SelectPool, SelectTag } from 'select-objects'
|
import { SelectPool, SelectTag } from 'select-objects'
|
||||||
|
|
||||||
@ -18,15 +18,10 @@ const VMS_STATUSES_OPTIONS = [
|
|||||||
|
|
||||||
export default [
|
export default [
|
||||||
connectStore({
|
connectStore({
|
||||||
storedVms: createGetObjectsOfType('VM'),
|
vms: createGetObjectsOfType('VM'),
|
||||||
}),
|
|
||||||
provideState({
|
|
||||||
computed: {
|
|
||||||
storedVms: (state, { storedVms }) => storedVms,
|
|
||||||
},
|
|
||||||
}),
|
}),
|
||||||
injectState,
|
injectState,
|
||||||
({ state, effects }) => (
|
({ state, effects, vms }) => (
|
||||||
<div>
|
<div>
|
||||||
<FormGroup>
|
<FormGroup>
|
||||||
<label>
|
<label>
|
||||||
@ -84,10 +79,7 @@ export default [
|
|||||||
value={get(state.tags, 'notValues')}
|
value={get(state.tags, 'notValues')}
|
||||||
/>
|
/>
|
||||||
</FormGroup>
|
</FormGroup>
|
||||||
<SmartBackupPreview
|
<SmartBackupPreview vms={vms} pattern={state.vmsSmartPattern} />
|
||||||
vms={state.storedVms}
|
|
||||||
pattern={state.vmsSmartPattern}
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
),
|
),
|
||||||
].reduceRight((value, decorator) => decorator(value))
|
].reduceRight((value, decorator) => decorator(value))
|
||||||
|
Loading…
Reference in New Issue
Block a user