Merge branch 'notifications'

This commit is contained in:
isUnknown 2024-12-19 11:12:11 +01:00
commit caf6f721fb
34 changed files with 671 additions and 417 deletions

View file

@ -36,6 +36,11 @@ const draftComment = ref(null);
const isViewerDisabled = ref(false);
watch(openedFile, () => {
removeCommentMarkers();
setCommentMarkers();
});
watch(isCommentsOpen, (newVal) => {
if (newVal) {
setCommentMarkers();
@ -45,6 +50,8 @@ watch(isCommentsOpen, (newVal) => {
});
watch(openedFile, (newVal) => {
if (!location.href.includes("virtual-sample")) return;
isViewerDisabled.value = true;
setTimeout(() => {

View file

@ -223,7 +223,6 @@ function getFrontView(track) {
const extension = track.files[0].name.split(".")[1];
const frontViewName = "0_" + xFrontView + "." + extension;
const frontView = track.files.find((file) => file.name === frontViewName);
console.log(frontView);
return frontView;
}
</script>