Dissimulation du bouton enregistrer en mode lecture seule
This commit is contained in:
parent
596108b4f4
commit
978cc65c41
|
@ -22,7 +22,7 @@ export const DecisionSupportFilePage: FunctionComponent<DecisionSupportFilePageP
|
||||||
filter: {
|
filter: {
|
||||||
ids: id !== 'new' ? [id] : undefined,
|
ids: id !== 'new' ? [id] : undefined,
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
const [ state, setState ] = useState({
|
const [ state, setState ] = useState({
|
||||||
|
@ -114,10 +114,14 @@ export const DecisionSupportFilePage: FunctionComponent<DecisionSupportFilePageP
|
||||||
</div>
|
</div>
|
||||||
<div className="level-right">
|
<div className="level-right">
|
||||||
<div className="level-item buttons">
|
<div className="level-item buttons">
|
||||||
|
{
|
||||||
|
isAuthorized ?
|
||||||
<button className="button is-medium is-success" disabled={!canSave} onClick={saveDSF}>
|
<button className="button is-medium is-success" disabled={!canSave} onClick={saveDSF}>
|
||||||
<span className="icon"><i className="fa fa-save"></i></span>
|
<span className="icon"><i className="fa fa-save"></i></span>
|
||||||
<span>Enregistrer</span>
|
<span>Enregistrer</span>
|
||||||
</button>
|
</button> :
|
||||||
|
null
|
||||||
|
}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue