mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-21 23:46:18 -05:00
Squashing config rework.
This commit is contained in:
parent
5425142adb
commit
08065155cf
38 changed files with 1046 additions and 633 deletions
|
|
@ -18,8 +18,7 @@ import {
|
|||
downloadChannel,
|
||||
getChannel,
|
||||
getChannels,
|
||||
getConfig,
|
||||
getDirectories,
|
||||
getDirectories, getSettings,
|
||||
refreshChannel,
|
||||
updateChannel,
|
||||
validateRegex
|
||||
|
|
@ -57,11 +56,11 @@ class DirectoryInput extends React.Component {
|
|||
}
|
||||
|
||||
async componentDidMount() {
|
||||
let global_config = await getConfig();
|
||||
let settings = await getSettings();
|
||||
let directories = await getDirectories(this.state.directory);
|
||||
this.setState({
|
||||
directories,
|
||||
mediaDirectory: global_config.media_directory,
|
||||
mediaDirectory: settings.media_directory,
|
||||
directory: this.props.value,
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue