chore(xo-web/log-alert-body): remove unused subscription (#5292)
Introduced By 3370014ddf
This commit is contained in:
parent
a186672447
commit
a99086b6bd
@ -11,11 +11,11 @@ import SearchBar from 'search-bar'
|
||||
import Select from 'form/select'
|
||||
import Tooltip from 'tooltip'
|
||||
import { addSubscriptions, connectStore, formatSize, formatSpeed } from 'utils'
|
||||
import { countBy, cloneDeep, filter, keyBy, map } from 'lodash'
|
||||
import { countBy, cloneDeep, filter, map } from 'lodash'
|
||||
import { createGetObjectsOfType } from 'selectors'
|
||||
import { FormattedDate } from 'react-intl'
|
||||
import { injectState, provideState } from 'reaclette'
|
||||
import { runBackupNgJob, subscribeBackupNgLogs, subscribeRemotes } from 'xo'
|
||||
import { runBackupNgJob, subscribeBackupNgLogs } from 'xo'
|
||||
import { Vm, Sr, Remote, Pool } from 'render-xo-item'
|
||||
|
||||
const hasTaskFailed = ({ status }) =>
|
||||
@ -317,10 +317,6 @@ const SEARCH_BAR_FILTERS = { name: 'name:' }
|
||||
const ITEMS_PER_PAGE = 5
|
||||
export default decorate([
|
||||
addSubscriptions(({ id }) => ({
|
||||
remotes: cb =>
|
||||
subscribeRemotes(remotes => {
|
||||
cb(keyBy(remotes, 'id'))
|
||||
}),
|
||||
log: cb =>
|
||||
subscribeBackupNgLogs(logs => {
|
||||
cb(logs[id])
|
||||
@ -467,7 +463,7 @@ export default decorate([
|
||||
},
|
||||
}),
|
||||
injectState,
|
||||
({ remotes, state, effects }) => {
|
||||
({ state, effects }) => {
|
||||
const { scheduleId, warnings, tasks = [] } = state.log
|
||||
return tasks.length === 0 ? (
|
||||
<div>
|
||||
|
Loading…
Reference in New Issue
Block a user