feat: Gruppentermin-Button in der Gruppenansicht + Banner in Akzentfarbe
- "+ Gruppentermin"-Button im Gruppenansicht-Banner: oeffnet den Editor mit dem Gruppenkalender vorausgewaehlt -> jeder kann direkt eintragen. - Banner + aktive Gruppe nutzen jetzt die Akzentfarbe (color-mix, Fallback) statt Blau. Version v35. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -2293,6 +2293,16 @@ function renderGroupList() {
|
||||
});
|
||||
}
|
||||
|
||||
// Open the new-event editor preselected to the active group's shared calendar.
|
||||
function openGroupEventModal() {
|
||||
const g = state.groups.find(x => x.id === state.activeGroupId);
|
||||
if (!g || !g.group_calendar_id) { showToast(t('groups_none'), true); return; }
|
||||
openNewEventModal(state.selectedDate || state.currentDate);
|
||||
const sel = document.getElementById('ev-calendar');
|
||||
sel.value = `local-${g.group_calendar_id}`;
|
||||
updatePrivateRow(false);
|
||||
}
|
||||
|
||||
function enterGroupView(groupId) {
|
||||
state.activeGroupId = groupId;
|
||||
const g = state.groups.find(x => x.id === groupId);
|
||||
@@ -2387,6 +2397,8 @@ function bindGroupUI() {
|
||||
if (addBtn) addBtn.onclick = () => openGroupModal(null);
|
||||
const exitBtn = document.getElementById('group-view-exit');
|
||||
if (exitBtn) exitBtn.onclick = exitGroupView;
|
||||
const newEvtBtn = document.getElementById('group-view-new-event');
|
||||
if (newEvtBtn) newEvtBtn.onclick = openGroupEventModal;
|
||||
|
||||
document.getElementById('group-save').onclick = async () => {
|
||||
const modal = document.getElementById('modal-group');
|
||||
|
||||
@@ -123,6 +123,7 @@ const translations = {
|
||||
group_exit: 'Gruppenansicht verlassen',
|
||||
group_icon: 'Icon',
|
||||
group_visible_flag: 'Für deine Gruppen sichtbar',
|
||||
group_new_event: '+ Gruppentermin',
|
||||
upload_too_large: 'Datei zu groß (Server-Limit). Bitte Upload-Limit erhöhen.',
|
||||
shared_with_me: 'Mit dir geteilt',
|
||||
settings_calendars: 'Kalender',
|
||||
@@ -389,6 +390,7 @@ const translations = {
|
||||
group_exit: 'Exit group view',
|
||||
group_icon: 'Icon',
|
||||
group_visible_flag: 'Visible to your groups',
|
||||
group_new_event: '+ Group event',
|
||||
upload_too_large: 'File too large (server limit). Please raise the upload limit.',
|
||||
shared_with_me: 'Shared with me',
|
||||
settings_calendars: 'Calendars',
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
// Increment APP_VERSION with every code change
|
||||
export const APP_VERSION = 'v34';
|
||||
export const APP_VERSION = 'v35';
|
||||
|
||||
Reference in New Issue
Block a user