Commit 3677ab23 by ramdayalmunda

hidden capture button

parent c81bae52
......@@ -265,6 +265,7 @@ var getUserDetails = null
});
sendMessageToActiveTab("recordingStopped")
setData("recording", false)
setData("imageNumber", 0)
setData("tutorShotId", tutorShotId)
return
}
......
......@@ -150,7 +150,7 @@ var tutorShotOid = null;
<img class="img" src="${origin}/assets/icons/redo.svg" width="20">
<span class="item-text">RESTART</span>
</div>
<div class="item" tutor-shot="capture-btn">
<div class="item" tutor-shot="capture-btn" style="display:none;">
<img class="img" src="${origin}/assets/icons/capture.svg" width="20">
<span class="item-text">CAPTURE</span>
</div>
......@@ -244,21 +244,21 @@ function reRenderFloatingBar(data) {
btn.pause.style.display = 'none'
btn.stop.style.display = 'flex'
btn.restart.style.display = 'flex'
btn.capture.style.display = 'flex'
// btn.capture.style.display = 'flex'
}
else if (data?.status == 'recording') {
btn.play.style.display = 'none'
btn.pause.style.display = 'flex'
btn.restart.style.display = 'flex'
btn.capture.style.display = 'flex'
btn.stop.style.display = 'flex'
// btn.capture.style.display = 'flex'
}
else { // stopped
btn.play.style.display = 'flex'
btn.pause.style.display = 'none'
btn.stop.style.display = 'none'
btn.capture.style.display = 'none'
btn.restart.style.display = 'none'
// btn.capture.style.display = 'none'
}
// floatingBar.innerHTML = innerHTML
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment