mirror of
https://github.com/safing/portmaster
synced 2026-04-28 19:41:59 +00:00
feat(UI/notifications): add ActionVisibility for conditional action display
Add a `Visibility` field to the `Action` struct allowing actions to be hidden in the compact notification view and only shown when the user expands the full notification (value: "detailed"). - base/notifications: add `ActionVisibility` type and `ActionVisibilityDetailed` constant to `Action` struct - notifications.types.ts: expose `Visibility` field on the frontend `BaseAction` interface - notification-list.component.html: filter out `detailed` actions in the compact list view - generic-setting.ts: set default `Visibility: ''` on the inline UI action
This commit is contained in:
parent
73460f522d
commit
e395dafa14
4 changed files with 23 additions and 3 deletions
|
|
@ -355,6 +355,7 @@ export class GenericSettingComponent<S extends BaseSetting<any, any>> implements
|
|||
ID: '',
|
||||
Text: '',
|
||||
Type: 'ui',
|
||||
Visibility: '',
|
||||
Run: async () => {
|
||||
if (!this.helpTemplate) {
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue