Skip to content

Commit ec2b74b

Browse files
cleanup
1 parent db38146 commit ec2b74b

3 files changed

Lines changed: 1 addition & 7 deletions

File tree

Backend/Altafraner.AfraApp/Notifications/Services/CompositeNotificationService.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@ public CompositeNotificationService(
3333
/// <inheritdoc />
3434
public async Task ScheduleNotificationAsync(Guid recipientId, string subject, string body, TimeSpan deadline)
3535
{
36-
Console.WriteLine("composite");
37-
3836
await _inApp.SendInAppNotificationAsync(recipientId, subject, body);
3937

4038
var wantsEmail = await _db.Personen

Backend/Altafraner.Backbone.WebNotification/WebNotificationsModule.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public void ConfigureServices(IServiceCollection services, IConfiguration config
2929
services.AddScoped<IWebNotificationContext<TPerson>>(sp =>
3030
{
3131
var settings = sp.GetRequiredService<IOptions<VapidConfiguration<TPerson>>>();
32-
var contextType = settings.Value.DbContextType ?? throw new InvalidOperationException("Cannot find VaapidConfiguration");
32+
var contextType = settings.Value.DbContextType ?? throw new InvalidOperationException("Cannot find VapidConfiguration");
3333
return sp.GetRequiredService(contextType) as IWebNotificationContext<TPerson> ??
3434
throw new InvalidOperationException("Module not configured");
3535
}

WebClient/src/views/Settings.vue

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ const notifStore = useNotifications();
9595
const pushHelper = usePushNotifications();
9696
9797
const receiveEmailNotifications = ref(true);
98-
const notifSettingsLoading = ref(false);
9998
const pushSubscribed = ref(false);
10099
const pushLoading = ref(false);
101100
@@ -109,7 +108,6 @@ async function loadNotifSettings() {
109108
}
110109
111110
async function saveNotifSettings() {
112-
notifSettingsLoading.value = true;
113111
try {
114112
await notifStore.saveSettings({
115113
receiveEmailNotifications: receiveEmailNotifications.value,
@@ -123,8 +121,6 @@ async function saveNotifSettings() {
123121
} catch (e) {
124122
console.error('Failed to save notification settings', e);
125123
toast.add({ severity: 'error', summary: 'Fehler beim Speichern' });
126-
} finally {
127-
notifSettingsLoading.value = false;
128124
}
129125
}
130126

0 commit comments

Comments
 (0)