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

@ -21,6 +21,7 @@ export const useDialogStore = defineStore("dialog", () => {
}
const route = useRoute();
const isCommentPanelEnabled = ref(true);
const isCommentsOpen = ref(
route.query.hasOwnProperty("comments") ? true : false
);
@ -133,6 +134,7 @@ export const useDialogStore = defineStore("dialog", () => {
comments,
draftComment,
isCommentsOpen,
isCommentPanelEnabled,
updateFile,
};
});