Add support for statistics routes
This commit is contained in:
@ -36,6 +36,7 @@ export function CreateTokenDialog(p: {
|
||||
right_auth: false,
|
||||
right_inbox: false,
|
||||
right_movement: false,
|
||||
right_stats: false,
|
||||
};
|
||||
|
||||
const clearForm = () => {
|
||||
@ -77,6 +78,7 @@ export function CreateTokenDialog(p: {
|
||||
right_file: true,
|
||||
right_auth: true,
|
||||
right_inbox: true,
|
||||
right_stats: false,
|
||||
});
|
||||
};
|
||||
|
||||
@ -202,6 +204,18 @@ export function CreateTokenDialog(p: {
|
||||
});
|
||||
}}
|
||||
/>
|
||||
<br />
|
||||
<CheckboxInput
|
||||
editable
|
||||
label="Right: statistics routes"
|
||||
checked={newToken.right_stats}
|
||||
onValueChange={(v) => {
|
||||
setNewToken({
|
||||
...newToken,
|
||||
right_stats: v,
|
||||
});
|
||||
}}
|
||||
/>
|
||||
</DialogContent>
|
||||
<DialogActions>
|
||||
<Button onClick={cancel}>Cancel</Button>
|
||||
|
Reference in New Issue
Block a user