招待コード発行を権限を持つユーザーが行えるように

Resolve #9541
This commit is contained in:
syuilo 2023-01-13 14:22:53 +09:00
parent 9936088200
commit 7b7faf1e84
9 changed files with 65 additions and 12 deletions

View file

@ -80,7 +80,7 @@ const menuDef = $computed(() => [{
action: lookup,
}, ...(instance.disableRegistration ? [{
type: 'button',
icon: 'ti ti-user',
icon: 'ti ti-user-plus',
text: i18n.ts.invite,
action: invite,
}] : [])],
@ -223,7 +223,7 @@ provideMetadataReceiver((info) => {
});
const invite = () => {
os.api('admin/invite').then(x => {
os.api('invite').then(x => {
os.alert({
type: 'info',
text: x.code,