mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-13 22:52:22 +00:00
frontend: Add user to global scope and make principal inputs dropdowns for collection creation
This commit is contained in:
9
crates/frontend/js-components/lib/global.d.ts
vendored
Normal file
9
crates/frontend/js-components/lib/global.d.ts
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
interface Window {
|
||||
rusticalUser: {
|
||||
id: String,
|
||||
displayname: String | null,
|
||||
memberships: Array<String>,
|
||||
principal_type: "individual" | "group" | "room" | String
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user