Skip to content

Commit

Permalink
improved topbar and fixed mypy issues
Browse files Browse the repository at this point in the history
Signed-off-by: Trey <73353716+TreyWW@users.noreply.github.com>
  • Loading branch information
TreyWW committed Oct 13, 2024
1 parent 0589893 commit 8c7992c
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 2 deletions.
6 changes: 6 additions & 0 deletions backend/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,10 @@ class BackendConfig(AppConfig):
name = "backend"

def ready(self):
from .finance import signals
from .core import signals

# from .clients import signals
# from .storage import signals
# from .events import signals
pass
4 changes: 2 additions & 2 deletions backend/core/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import itertools
import typing
from datetime import datetime, date, timedelta
from datetime import datetime, timedelta
from typing import Literal, Union
from uuid import uuid4

Expand Down Expand Up @@ -94,7 +94,7 @@ def name(self):
return self.first_name

@property
def teams_apart_of(self) -> set[QuerySet[Organization]]:
def teams_apart_of(self):
return set(itertools.chain(self.teams_joined.all(), self.teams_leader_of.all()))

@property
Expand Down
Empty file added backend/events/__init__.py
Empty file.
Empty file.
10 changes: 10 additions & 0 deletions frontend/templates/base/topbar/_topbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@
</label>
</div>
<div class="flex items-center gap-x-0 gap-x-3 ms-4 md:gap-x-5">
<a href="/" class="hidden lg:block">
<label for="service_list_drawer"
id="service_list_button"
aria-label="close sidebar"
class="flex items-center swap-rotate drawer-overlay swap">
<input type="checkbox" id="logo_single_service_list_toggler" />
<img src="{% static "img/logo_single.png" %}" class="h-10 swap-off">
<i class="absolute flex items-center justify-center fa fa-solid fa-x swap-on"></i>
</label>
</a>
{% include 'base/topbar/team_selector/selector.html' %}
</div>
</div>
Expand Down

0 comments on commit 8c7992c

Please sign in to comment.