Migrate to generic S3 mount
This commit is contained in:
@@ -110,8 +110,8 @@ class App extends IPCContainer {
|
||||
const remoteSupported = this.props.LocationsLookup[selectedVersion] &&
|
||||
this.props.LocationsLookup[selectedVersion].supports_remote;
|
||||
|
||||
const gooboxS3Supported = this.props.LocationsLookup[selectedVersion] &&
|
||||
this.props.LocationsLookup[selectedVersion].gooboxs3_support;
|
||||
const s3Supported = this.props.LocationsLookup[selectedVersion] &&
|
||||
this.props.LocationsLookup[selectedVersion].s3_support;
|
||||
|
||||
const skynetSupported = this.props.LocationsLookup[selectedVersion] &&
|
||||
this.props.LocationsLookup[selectedVersion].skynet_support;
|
||||
@@ -215,7 +215,7 @@ class App extends IPCContainer {
|
||||
mainContent.push((
|
||||
<Box dxStyle={{padding: 'var(--default_spacing)', height: 'auto'}}
|
||||
key={'md_' + key++}>
|
||||
<MountItems gooboxS3Supported={gooboxS3Supported}
|
||||
<MountItems s3Supported={s3Supported}
|
||||
remoteSupported={remoteSupported}
|
||||
scPrimeSupported={scPrimeSupported}
|
||||
siaSupported={siaSupported}
|
||||
|
||||
@@ -50,7 +50,7 @@ exports.DATA_LOCATIONS = {
|
||||
exports.PROVIDER_LIST = [
|
||||
'Sia',
|
||||
'Skynet',
|
||||
'GooboxS3',
|
||||
'S3',
|
||||
'ScPrime',
|
||||
];
|
||||
|
||||
@@ -58,7 +58,7 @@ exports.PROVIDER_ARG = {
|
||||
sia: '',
|
||||
skynet: '-sk',
|
||||
scprime: '-sp',
|
||||
gooboxs3: '-gb',
|
||||
s3: '-s3',
|
||||
};
|
||||
|
||||
exports.RELEASE_TYPES = [
|
||||
|
||||
@@ -158,7 +158,7 @@ class MountItems extends IPCContainer {
|
||||
} else {
|
||||
let allowAction = true;
|
||||
if (mount) {
|
||||
let result = remote || provider === "GooboxS3" || provider === "Skynet" ?
|
||||
let result = remote || provider === 'S3' || provider === 'Skynet' ?
|
||||
{Valid: true, Success: true} :
|
||||
this.sendSyncRequest(Constants.IPC_Check_Daemon_Version, {
|
||||
Provider: provider,
|
||||
@@ -221,7 +221,7 @@ class MountItems extends IPCContainer {
|
||||
|
||||
getProviderList = providersOnly => {
|
||||
const providerList = Constants.PROVIDER_LIST.filter(i => {
|
||||
return ((i === 'GooboxS3') && this.props.gooboxS3Supported) ||
|
||||
return ((i === 'S3') && this.props.s3Supported) ||
|
||||
((i === 'Skynet') && this.props.skynetSupported) ||
|
||||
((i === 'ScPrime') && this.props.scPrimeSupported) ||
|
||||
((i === 'Sia') && this.props.siaSupported);
|
||||
|
||||
Reference in New Issue
Block a user