Partial S3 support

This commit is contained in:
2020-08-15 13:14:44 -05:00
parent 3846c85500
commit 27aa0ae8dc
17 changed files with 588 additions and 385 deletions

View File

@@ -82,6 +82,7 @@ class Configuration extends IPCContainer {
this.sendRequest(Constants.IPC_Get_Config_Template, {
Provider: this.props.DisplayConfiguration,
Remote: this.props.DisplayRemoteConfiguration,
S3: this.props.DisplayS3Configuration,
Version: this.props.version,
});
}
@@ -96,7 +97,7 @@ class Configuration extends IPCContainer {
const itemList = Object
.keys(config)
.map(key => {
const ret = {
return {
advanced: template[key] ? template[key].advanced : false,
hide_remote: template[key] ? template[key].hide_remote : false,
label: key,
@@ -108,7 +109,6 @@ class Configuration extends IPCContainer {
config[key] :
config[key].toString(),
};
return ret;
})
.filter(i=> {
let ret = template[i.label];
@@ -193,6 +193,7 @@ class Configuration extends IPCContainer {
this.sendRequest(Constants.IPC_Get_Config, {
Provider: this.props.DisplayConfiguration,
Remote: this.props.DisplayRemoteConfiguration,
S3: this.props.DisplayS3Configuration,
Version: this.props.version,
});
});
@@ -240,6 +241,7 @@ class Configuration extends IPCContainer {
Items: changedItems,
Provider: this.props.DisplayConfiguration,
Remote: this.props.DisplayRemoteConfiguration,
S3: this.props.DisplayS3Configuration,
Version: this.props.version,
});
});
@@ -361,6 +363,7 @@ const mapStateToProps = state => {
return {
DisplayConfiguration: state.mounts.DisplayConfiguration,
DisplayRemoteConfiguration: state.mounts.DisplayRemoteConfiguration,
DisplayS3Configuration: state.mounts.DisplayS3Configuration,
Platform: state.common.Platform,
}
};