fix(xo-web): dont warn when restoring XO config (#5872)
This commit is contained in:
parent
d3cb31f1a7
commit
f5473236d0
@ -30,7 +30,7 @@ const restore = entry =>
|
|||||||
title: _('restoreMetadataBackupTitle', {
|
title: _('restoreMetadataBackupTitle', {
|
||||||
item: `${entry.type} (${entry.label})`,
|
item: `${entry.type} (${entry.label})`,
|
||||||
}),
|
}),
|
||||||
body: <RestoreMetadataBackupModalBody backups={entry.backups} />,
|
body: <RestoreMetadataBackupModalBody backups={entry.backups} type={entry.type} />,
|
||||||
icon: 'restore',
|
icon: 'restore',
|
||||||
}).then(backup => {
|
}).then(backup => {
|
||||||
if (backup === undefined) {
|
if (backup === undefined) {
|
||||||
|
@ -18,6 +18,7 @@ const restorationWarning = (
|
|||||||
export default class RestoreMetadataBackupModalBody extends Component {
|
export default class RestoreMetadataBackupModalBody extends Component {
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
backups: PropTypes.array,
|
backups: PropTypes.array,
|
||||||
|
type: PropTypes.string,
|
||||||
}
|
}
|
||||||
|
|
||||||
get value() {
|
get value() {
|
||||||
@ -53,7 +54,7 @@ export default class RestoreMetadataBackupModalBody extends Component {
|
|||||||
/>
|
/>
|
||||||
</Col>
|
</Col>
|
||||||
</SingleLineRow>
|
</SingleLineRow>
|
||||||
<SingleLineRow>{restorationWarning}</SingleLineRow>
|
{this.props.type !== 'XO' && <SingleLineRow>{restorationWarning}</SingleLineRow>}
|
||||||
</Container>
|
</Container>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user