Handle read-only calendars

This commit is contained in:
Burak Kaan Köse
2026-04-14 17:52:38 +02:00
parent feff929333
commit 0610096b78
14 changed files with 115 additions and 2 deletions
@@ -16,6 +16,7 @@ public class AccountCalendar : IAccountCalendar
public string SynchronizationDeltaToken { get; set; }
public string Name { get; set; }
public bool IsPrimary { get; set; }
public bool IsReadOnly { get; set; }
public bool IsSynchronizationEnabled { get; set; } = true;
public bool IsExtended { get; set; } = true;
public CalendarItemShowAs DefaultShowAs { get; set; } = CalendarItemShowAs.Busy;
@@ -10,6 +10,7 @@ public interface IAccountCalendar
string TextColorHex { get; set; }
string BackgroundColorHex { get; set; }
bool IsPrimary { get; set; }
bool IsReadOnly { get; set; }
bool IsSynchronizationEnabled { get; set; }
Guid AccountId { get; set; }
string RemoteCalendarId { get; set; }
@@ -16,6 +16,7 @@ namespace Wino.Core.Domain.Interfaces;
public interface IMailDialogService : IDialogServiceBase
{
void ShowReadOnlyCalendarMessage();
Task<bool> ShowHardDeleteConfirmationAsync();
Task HandleSystemFolderConfigurationDialogAsync(Guid accountId, IFolderService folderService);
@@ -213,6 +213,8 @@
"CalendarEventDetails_Organizer": "Organizer",
"CalendarEventDetails_People": "People",
"CalendarEventDetails_ReadOnlyEvent": "Read-only event",
"CalendarReadOnly_Title": "Read-only calendar",
"CalendarReadOnly_Message": "You can't update this calendar or its events. This calendar is read-only.",
"CalendarContextMenu_Respond": "Respond",
"CalendarEventDetails_Reminder": "Reminder",
"CalendarReminder_StartedHoursAgo": "Started {0} hours ago",