Skip to content

Commit

Permalink
Revert "Refactor Navigation Signals for Dashboard Separation (#528)" (#…
Browse files Browse the repository at this point in the history
…533)

This reverts commit d4a76a7.
  • Loading branch information
mariobehling authored Feb 3, 2025
1 parent d4a76a7 commit 4c7b1c1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 31 deletions.
5 changes: 2 additions & 3 deletions src/pretix/eventyay_common/navigation.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@

from pretix.base.models import Event
from pretix.control.navigation import merge_in
from pretix.control.signals import nav_global
from pretix.eventyay_common.signals import nav_event_common
from pretix.control.signals import nav_event, nav_global


def get_global_navigation(request: HttpRequest) -> List[Dict[str, Any]]:
Expand Down Expand Up @@ -93,7 +92,7 @@ def get_event_navigation(request: HttpRequest, event: Event) -> List[Dict[str, A
]

# Merge plugin-provided navigation items
plugin_responses = nav_event_common.send(event, request=request)
plugin_responses = nav_event.send(event, request=request)
plugin_nav_items = []
for receiver, response in plugin_responses:
if response:
Expand Down
26 changes: 0 additions & 26 deletions src/pretix/eventyay_common/signals.py

This file was deleted.

4 changes: 2 additions & 2 deletions src/pretix/plugins/webcheckin/signals.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
from django.utils.safestring import mark_safe
from django.utils.translation import gettext_lazy as _

from pretix.eventyay_common.signals import nav_event_common
from pretix.control.signals import nav_event


@receiver(nav_event_common, dispatch_uid='webcheckin_nav_event')
@receiver(nav_event, dispatch_uid='webcheckin_nav_event')
def navbar_entry(sender, request, **kwargs):
url = request.resolver_match
if not request.user.has_event_permission(request.organizer, request.event, ('can_change_orders', 'can_checkin_orders'), request=request):
Expand Down

0 comments on commit 4c7b1c1

Please sign in to comment.