|
|
|
@ -17,6 +17,8 @@ const hideMenu = toRef(props, 'hideMenu')
|
|
|
|
|
|
|
|
|
|
const isForm = inject(IsFormInj, ref(false)) |
|
|
|
|
|
|
|
|
|
const isLocked = inject(IsLockedInj, ref(false)) |
|
|
|
|
|
|
|
|
|
const isSurveyForm = inject(IsSurveyFormInj, ref(false)) |
|
|
|
|
|
|
|
|
|
const isExpandedForm = inject(IsExpandedFormOpenInj, ref(false)) |
|
|
|
@ -46,12 +48,16 @@ const closeAddColumnDropdown = () => {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const openHeaderMenu = () => { |
|
|
|
|
if (isLocked.value) return |
|
|
|
|
|
|
|
|
|
if (!isForm.value && !isExpandedForm.value && isUIAllowed('fieldEdit') && !isMobileMode.value) { |
|
|
|
|
editColumnDropdown.value = true |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const openDropDown = (e: Event) => { |
|
|
|
|
if (isLocked.value) return |
|
|
|
|
|
|
|
|
|
if (isForm.value || isExpandedForm.value || (!isUIAllowed('fieldEdit') && !isMobileMode.value)) return |
|
|
|
|
|
|
|
|
|
e.preventDefault() |
|
|
|
|