Accidently just broke all dialogs and modals LMFAO

This commit is contained in:
Soph :3 2024-11-25 17:32:52 +02:00
parent 09436dfdb7
commit 9eaeb5e90d
Signed by: sophie
GPG key ID: EDA5D222A0C270F2

View file

@ -1,4 +1,4 @@
// iife is only so "pv" doesn't go into globals
// custom rules
(() => {
const pv = window.PvInternals;
@ -48,43 +48,43 @@
i;
switch (e) {
case pv.Modal.BAN:
i = new components_popups_pv_ban_pv_ban;
i = new pv.components_popups_pv_ban_pv_ban;
break;
case pv.Modal.PROFILE:
i = new components_popups_pv_profile_pv_profile;
i = new pv.components_popups_pv_profile_pv_profile;
break;
case pv.Modal.SETTINGS:
i = new components_popups_pv_settings_pv_settings;
i = new pv.components_popups_pv_settings_pv_settings;
break;
case pv.Modal.MESSAGE:
i = new components_popups_pv_message_pv_message;
i = new pv.components_popups_pv_message_pv_message;
break;
case pv.Modal.NEW_ROOM:
i = new components_popups_pv_new_room_pv_new_room;
i = new pv.components_popups_pv_new_room_pv_new_room;
break;
case pv.Modal.NEW_ROOM:
i = new components_popups_pv_new_room_pv_new_room;
i = new pv.components_popups_pv_new_room_pv_new_room;
break;
case pv.Modal.RULES:
i = new PvmeRulesModal;
break;
case pv.Dialog.ROOMS:
i = new components_popups_pv_rooms_pv_rooms;
i = new pv.components_popups_pv_rooms_pv_rooms;
break;
case pv.Dialog.ACTIONS:
i = new components_popups_pv_actions_pv_actions;
i = new pv.components_popups_pv_actions_pv_actions;
break;
case pv.Dialog.DEVICES:
i = new components_popups_pv_devices_pv_devices;
i = new pv.components_popups_pv_devices_pv_devices;
break;
case pv.Dialog.SOUNDS:
i = new components_popups_pv_sounds_pv_sounds;
i = new pv.components_popups_pv_sounds_pv_sounds;
break;
case pv.Dialog.TRANSPOSE:
i = new components_popups_pv_transpose_pv_transpose;
i = new pv.components_popups_pv_transpose_pv_transpose;
break;
case pv.Dialog.VELOCITY:
i = new components_popups_pv_velocity_pv_velocity;
i = new pv.components_popups_pv_velocity_pv_velocity;
break;
default:
throw new Error(`Popup ${e} not found`)