change color palette, change user_id to member_id

This commit is contained in:
Gregor Vostrak
2024-05-21 01:53:50 +02:00
parent 68ecc1227d
commit 8b12dec546
51 changed files with 836 additions and 388 deletions

View File

@@ -18,6 +18,12 @@ function getCurrentOrganizationId() {
return page.props.auth.user.current_team_id;
}
function getCurrentMembershipId() {
return page.props.auth.user.all_teams.find(
(team) => team.id === getCurrentOrganizationId()
)?.membership.id;
}
function getUserTimezone() {
return page.props.auth.user.timezone;
}
@@ -27,4 +33,5 @@ export {
getCurrentUserId,
getUserTimezone,
getWeekStart,
getCurrentMembershipId,
};