Skip to content

Commit 93c4c98

Browse files
committed
feat(settings): add Declarative settings sensitive attribute
Signed-off-by: Andrey Borysenko <andrey18106x@gmail.com>
1 parent dc733eb commit 93c4c98

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

nc_py_api/ex_app/ui/settings.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ class SettingsField:
4848
description: str = ""
4949
placeholder: str = ""
5050
label: str = ""
51+
sensitive: bool = False
5152
notify = False # to be supported in future
5253

5354
@classmethod
@@ -74,6 +75,7 @@ def to_dict(self) -> dict:
7475
"placeholder": self.placeholder,
7576
"label": self.label,
7677
"notify": self.notify,
78+
"sensitive": self.sensitive,
7779
}
7880

7981

0 commit comments

Comments
 (0)