This commit is contained in:
1 parent
cdb4637c65
commit
f0c0479bcb
22 files changed
+1099
-76
No files matched your search
@@ -33,6 +33,20 @@ public partial class SettingsViewModel
|
||||
[ObservableProperty] private string _untisPassword = "";
|
||||
[ObservableProperty] private string _untisApiStatus = "";
|
||||
[ObservableProperty] private bool _untisApiBusy;
|
||||
public bool UntisScheduleSyncIsConfigured => UntisApiIsConfigured || UntisIsConfigured;
|
||||
public string UntisScheduleSyncSource => UntisApiIsConfigured
|
||||
? "Direkter WebUntis-REST-Abgleich aktiv; iCal wird nur ohne API-Zugang verwendet."
|
||||
: "iCal-Fallback aktiv.";
|
||||
partial void OnUntisApiIsConfiguredChanged(bool value)
|
||||
{
|
||||
OnPropertyChanged(nameof(UntisScheduleSyncIsConfigured));
|
||||
OnPropertyChanged(nameof(UntisScheduleSyncSource));
|
||||
}
|
||||
partial void OnUntisIsConfiguredChanged(bool value)
|
||||
{
|
||||
OnPropertyChanged(nameof(UntisScheduleSyncIsConfigured));
|
||||
OnPropertyChanged(nameof(UntisScheduleSyncSource));
|
||||
}
|
||||
[ObservableProperty] private string? _untisHomeroomClassName;
|
||||
public string UntisHomeroomClassDisplay => UntisHomeroomClassName is { Length: > 0 } name
|
||||
? $"Ausgewählt: {name}"
|
||||
@@ -44,8 +58,8 @@ public partial class SettingsViewModel
|
||||
|
||||
// ── WebUntis-iCal-Abgleich: Laden / Speichern / Entfernen / Jetzt abrufen ────
|
||||
//
|
||||
// Wie bei Sync deckt ein Neustart das Registrieren von UntisSyncService ab
|
||||
// (AppBootstrapper registriert es nur einmalig beim Start, wenn URL+Enabled vorliegen).
|
||||
// UntisSyncService ist immer registriert und entscheidet je Abruf: REST bei vorhandenem
|
||||
// API-Zugang, sonst der weiterhin unterstützte iCal-Fallback.
|
||||
|
||||
private void LoadUntisSettings()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user