feat: enhance customization options with new 'Mes Persos' panel and improved context menus
This commit is contained in:
@@ -19,11 +19,13 @@
|
||||
import { computed } from 'vue';
|
||||
import { openContextMenu } from '@/composables/useContextMenu';
|
||||
import { useCustomStyles, SEND_BUTTON_PRESETS } from '@/composables/useCustomStyles';
|
||||
import { useMyPerks } from '@/composables/useMessages';
|
||||
|
||||
defineProps<{ disabled?: boolean }>();
|
||||
defineEmits<{ send: [] }>();
|
||||
|
||||
const { prefs } = useCustomStyles();
|
||||
const { myPerks } = useMyPerks();
|
||||
|
||||
const btnStyle = computed(() => {
|
||||
const p = SEND_BUTTON_PRESETS[prefs.sendButton];
|
||||
@@ -31,6 +33,7 @@ const btnStyle = computed(() => {
|
||||
});
|
||||
|
||||
function onRightClick(e: MouseEvent): void {
|
||||
if (!myPerks.value.elementSkin) return;
|
||||
openContextMenu({
|
||||
x: e.clientX,
|
||||
y: e.clientY,
|
||||
|
||||
Reference in New Issue
Block a user