SiaPrime changes
This commit is contained in:
@@ -18,7 +18,7 @@ export default CSSModules((props) => {
|
||||
rowSpan={6}>
|
||||
<img alt=''
|
||||
height={'16px'}
|
||||
onClick={props.configClicked}
|
||||
onClick={props.disabled ? (e)=>{e.preventDefault();} : props.configClicked}
|
||||
src={configureImage}
|
||||
style={{padding: 0, border: 0, margin: 0, cursor: 'pointer'}}
|
||||
width={'16px'}/>
|
||||
@@ -32,7 +32,7 @@ export default CSSModules((props) => {
|
||||
inputColumnSpan = 20;
|
||||
inputControl = <DropDown changed={props.changed}
|
||||
colSpan={inputColumnSpan}
|
||||
disabled={!props.allowMount || props.mounted}
|
||||
disabled={!props.allowMount || props.mounted || props.disabled}
|
||||
items={props.items}
|
||||
row={secondRow}
|
||||
rowSpan={7}
|
||||
@@ -44,14 +44,14 @@ export default CSSModules((props) => {
|
||||
<RootElem colSpan={inputColumnSpan}
|
||||
row={secondRow}
|
||||
rowSpan={7}>
|
||||
<input disabled={!props.allowMount || props.mounted}
|
||||
<input disabled={!props.allowMount || props.mounted || props.disabled}
|
||||
onChange={props.changed}
|
||||
type={'text'}
|
||||
value={props.location}/>
|
||||
</RootElem>);
|
||||
}
|
||||
|
||||
const buttonDisplay = props.allowMount ?
|
||||
const buttonDisplay = props.allowMount || props.disabled ?
|
||||
(props.mounted ? 'Unmount' : 'Mount') :
|
||||
<Loader color={'var(--heading_text_color)'}
|
||||
height='19px'
|
||||
@@ -62,7 +62,7 @@ export default CSSModules((props) => {
|
||||
<Button clicked={()=>props.clicked(props.title, !props.mounted, props.location, props.pid)}
|
||||
col={inputColumnSpan + 2}
|
||||
colSpan={20}
|
||||
disabled={!props.allowMount}
|
||||
disabled={!props.allowMount || props.disabled}
|
||||
row={secondRow}
|
||||
rowSpan={7}>
|
||||
{buttonDisplay}
|
||||
@@ -74,6 +74,7 @@ export default CSSModules((props) => {
|
||||
row={secondRow}
|
||||
rowSpan={7}>
|
||||
<input checked={props.autoMount}
|
||||
disabled={props.disabled}
|
||||
onChange={props.autoMountChanged}
|
||||
type='checkbox'/>Auto-mount
|
||||
</RootElem>
|
||||
@@ -85,6 +86,7 @@ export default CSSModules((props) => {
|
||||
row={secondRow}
|
||||
rowSpan={7}>
|
||||
<input checked={props.autoRestart}
|
||||
disabled={props.disabled}
|
||||
onChange={props.autoRestartChanged}
|
||||
type='checkbox'/>Restart
|
||||
</RootElem>
|
||||
|
||||
Reference in New Issue
Block a user