Commit 3677ab23 by ramdayalmunda

hidden capture button

parent c81bae52
...@@ -265,6 +265,7 @@ var getUserDetails = null ...@@ -265,6 +265,7 @@ var getUserDetails = null
}); });
sendMessageToActiveTab("recordingStopped") sendMessageToActiveTab("recordingStopped")
setData("recording", false) setData("recording", false)
setData("imageNumber", 0)
setData("tutorShotId", tutorShotId) setData("tutorShotId", tutorShotId)
return return
} }
......
...@@ -150,7 +150,7 @@ var tutorShotOid = null; ...@@ -150,7 +150,7 @@ var tutorShotOid = null;
<img class="img" src="${origin}/assets/icons/redo.svg" width="20"> <img class="img" src="${origin}/assets/icons/redo.svg" width="20">
<span class="item-text">RESTART</span> <span class="item-text">RESTART</span>
</div> </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"> <img class="img" src="${origin}/assets/icons/capture.svg" width="20">
<span class="item-text">CAPTURE</span> <span class="item-text">CAPTURE</span>
</div> </div>
...@@ -244,21 +244,21 @@ function reRenderFloatingBar(data) { ...@@ -244,21 +244,21 @@ function reRenderFloatingBar(data) {
btn.pause.style.display = 'none' btn.pause.style.display = 'none'
btn.stop.style.display = 'flex' btn.stop.style.display = 'flex'
btn.restart.style.display = 'flex' btn.restart.style.display = 'flex'
btn.capture.style.display = 'flex' // btn.capture.style.display = 'flex'
} }
else if (data?.status == 'recording') { else if (data?.status == 'recording') {
btn.play.style.display = 'none' btn.play.style.display = 'none'
btn.pause.style.display = 'flex' btn.pause.style.display = 'flex'
btn.restart.style.display = 'flex' btn.restart.style.display = 'flex'
btn.capture.style.display = 'flex'
btn.stop.style.display = 'flex' btn.stop.style.display = 'flex'
// btn.capture.style.display = 'flex'
} }
else { // stopped else { // stopped
btn.play.style.display = 'flex' btn.play.style.display = 'flex'
btn.pause.style.display = 'none' btn.pause.style.display = 'none'
btn.stop.style.display = 'none' btn.stop.style.display = 'none'
btn.capture.style.display = 'none'
btn.restart.style.display = 'none' btn.restart.style.display = 'none'
// btn.capture.style.display = 'none'
} }
// floatingBar.innerHTML = innerHTML // 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