dynamic view > compare mode : disable comment

This commit is contained in:
isUnknown 2024-12-19 17:18:26 +01:00
parent b4be010af7
commit f74c818ffc
3 changed files with 16 additions and 2 deletions

View file

@ -70,13 +70,16 @@
}}</span>
</button>
<button
v-if="isCommentPanelEnabled"
id="toggle-comments"
:aria-pressed="isCommentsOpen"
class="btn btn--transparent btn--outline"
data-icon="comment"
@click="isCommentsOpen = !isCommentsOpen"
>
<span class="sr-only">{{ isCommentsOpen ? 'Masquer' : 'Afficher' }} les commentaires</span>
<span class="sr-only"
>{{ isCommentsOpen ? "Masquer" : "Afficher" }} les commentaires</span
>
</button>
</template>
<Comments v-if="isCommentsOpen" @show-draft-marker="showDraftMarker" />
@ -102,7 +105,7 @@ const { activeTab, currentFile, step, isLoopAnimationEnabled } = storeToRefs(
useVirtualSampleStore()
);
isLoopAnimationEnabled.value = false;
const { isCommentsOpen } = storeToRefs(useDialogStore());
const { isCommentsOpen, isCommentPanelEnabled } = storeToRefs(useDialogStore());
// Variables
const router = useRouter();