Add remote mount
This commit is contained in:
@@ -216,13 +216,15 @@ class Configuration extends IPCContainer {
|
||||
item.remote &&
|
||||
this.props.remoteSupported &&
|
||||
(item.label !== 'IsRemoteMount')) {
|
||||
const isRemoteMount = JSON.parse(itemList.find(s=>s.label === 'IsRemoteMount').value);
|
||||
const enableRemoteMount = JSON.parse(itemList.find(s=>s.label === 'EnableRemoteMount').value);
|
||||
return (item.label === 'RemoteHostNameOrIp') || (item.label === 'RemotePort') || (item.label === 'RemoteToken') ?
|
||||
const isRemoteMount = JSON.parse(itemList.find(s => s.label === 'IsRemoteMount').value);
|
||||
const enableRemoteMount = JSON.parse(itemList.find(s => s.label === 'EnableRemoteMount').value);
|
||||
return (item.label === 'RemoteHostNameOrIp') ?
|
||||
isRemoteMount :
|
||||
(item.label === 'EnableRemoteMount') ?
|
||||
!isRemoteMount :
|
||||
enableRemoteMount;
|
||||
(item.label === 'RemotePort') || (item.label === 'RemoteToken') ?
|
||||
isRemoteMount || enableRemoteMount :
|
||||
(item.label === 'EnableRemoteMount') ?
|
||||
!isRemoteMount :
|
||||
enableRemoteMount;
|
||||
}
|
||||
return false;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user