|
|
@ -3,6 +3,7 @@ import React, { Component } from 'react';
|
|
|
|
import Card from 'Components/Card';
|
|
|
|
import Card from 'Components/Card';
|
|
|
|
import Label from 'Components/Label';
|
|
|
|
import Label from 'Components/Label';
|
|
|
|
import ConfirmModal from 'Components/Modal/ConfirmModal';
|
|
|
|
import ConfirmModal from 'Components/Modal/ConfirmModal';
|
|
|
|
|
|
|
|
import TagList from 'Components/TagList';
|
|
|
|
import { kinds } from 'Helpers/Props';
|
|
|
|
import { kinds } from 'Helpers/Props';
|
|
|
|
import formatShortTimeSpan from 'Utilities/Date/formatShortTimeSpan';
|
|
|
|
import formatShortTimeSpan from 'Utilities/Date/formatShortTimeSpan';
|
|
|
|
import translate from 'Utilities/String/translate';
|
|
|
|
import translate from 'Utilities/String/translate';
|
|
|
@ -58,6 +59,8 @@ class ImportList extends Component {
|
|
|
|
name,
|
|
|
|
name,
|
|
|
|
enabled,
|
|
|
|
enabled,
|
|
|
|
enableAuto,
|
|
|
|
enableAuto,
|
|
|
|
|
|
|
|
tags,
|
|
|
|
|
|
|
|
tagList,
|
|
|
|
minRefreshInterval
|
|
|
|
minRefreshInterval
|
|
|
|
} = this.props;
|
|
|
|
} = this.props;
|
|
|
|
|
|
|
|
|
|
|
@ -72,7 +75,6 @@ class ImportList extends Component {
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div className={styles.enabled}>
|
|
|
|
<div className={styles.enabled}>
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
enabled ?
|
|
|
|
enabled ?
|
|
|
|
<Label kind={kinds.SUCCESS}>
|
|
|
|
<Label kind={kinds.SUCCESS}>
|
|
|
@ -87,15 +89,21 @@ class ImportList extends Component {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
enableAuto &&
|
|
|
|
enableAuto ?
|
|
|
|
<Label kind={kinds.SUCCESS}>
|
|
|
|
<Label kind={kinds.SUCCESS}>
|
|
|
|
{translate('AutomaticAdd')}
|
|
|
|
{translate('AutomaticAdd')}
|
|
|
|
</Label>
|
|
|
|
</Label> :
|
|
|
|
|
|
|
|
null
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<TagList
|
|
|
|
|
|
|
|
tags={tags}
|
|
|
|
|
|
|
|
tagList={tagList}
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
|
|
<div className={styles.enabled}>
|
|
|
|
<div className={styles.enabled}>
|
|
|
|
<Label kind={kinds.INFO} title='List Refresh Interval'>
|
|
|
|
<Label kind={kinds.DEFAULT} title='List Refresh Interval'>
|
|
|
|
{`${translate('Refresh')}: ${formatShortTimeSpan(minRefreshInterval)}`}
|
|
|
|
{`${translate('Refresh')}: ${formatShortTimeSpan(minRefreshInterval)}`}
|
|
|
|
</Label>
|
|
|
|
</Label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -126,6 +134,8 @@ ImportList.propTypes = {
|
|
|
|
name: PropTypes.string.isRequired,
|
|
|
|
name: PropTypes.string.isRequired,
|
|
|
|
enabled: PropTypes.bool.isRequired,
|
|
|
|
enabled: PropTypes.bool.isRequired,
|
|
|
|
enableAuto: PropTypes.bool.isRequired,
|
|
|
|
enableAuto: PropTypes.bool.isRequired,
|
|
|
|
|
|
|
|
tags: PropTypes.arrayOf(PropTypes.number).isRequired,
|
|
|
|
|
|
|
|
tagList: PropTypes.arrayOf(PropTypes.object).isRequired,
|
|
|
|
minRefreshInterval: PropTypes.string.isRequired,
|
|
|
|
minRefreshInterval: PropTypes.string.isRequired,
|
|
|
|
onConfirmDeleteImportList: PropTypes.func.isRequired
|
|
|
|
onConfirmDeleteImportList: PropTypes.func.isRequired
|
|
|
|
};
|
|
|
|
};
|
|
|
|