Provide a cli command to clear notifications. (#444)

This commit is contained in:
Jas Singh
2024-11-05 21:11:50 -08:00
committed by GitHub
parent 6250c2b3be
commit ec3be1cad8
3 changed files with 14 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
import { closeNotifications } from 'globals/notification';
import { clearNotifications } from 'globals/notification';
import { BoxWidget } from 'lib/types/widget';
import { Notifications } from 'types/service/notifications';
import options from 'options';
@@ -53,7 +53,7 @@ const Controls = (notifs: Notifications): BoxWidget => {
return;
}
return closeNotifications(notifs.notifications, delay);
return clearNotifications(notifs.notifications, delay);
};
}),
child: Widget.Label({