Skip to content
Snippets Groups Projects
Commit ffacc31b authored by Bruno Boiget's avatar Bruno Boiget
Browse files

Merge branch '136-pb-enregistreur-de-son-dans-publications' into 'dev'

Resolve "Pb enregistreur de son dans "Publications""

Closes #136

See merge request !550
parents d6849e4a 7ecb4723
No related branches found
No related tags found
1 merge request!550Resolve "Pb enregistreur de son dans "Publications""
Pipeline #14902 passed
......@@ -223,6 +223,7 @@ const AudioModal = ({ onClose, selectFile, admin }) => {
onFinish: (url) => {
setLoading(false);
selectFile(url);
toggleSend();
},
},
});
......@@ -272,13 +273,13 @@ const AudioModal = ({ onClose, selectFile, admin }) => {
{
label: 'components.AudioModal.refresh',
disabled: !audioBlob || loading || !audioPlayer,
onClick: audioPlayer ? null : refreshAudio,
onClick: !audioBlob ? null : refreshAudio,
icon: <RefreshIcon />,
},
{
label: 'components.AudioModal.upload',
disabled: !audioBlob || loading || !audioPlayer,
onClick: audioPlayer ? null : toggleSend,
onClick: !audioBlob ? null : toggleSend,
icon: <CloudUploadIcon />,
},
].map((item) => (
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment