1
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

12 lines
430 B

import { getBackendSrv } from '@grafana/runtime';
import { appEvents } from 'app/core/core';
import { FormModel } from './UserInviteForm';
import { AppEvents } from '@grafana/data';
export const userInviteSubmit = async (formData: FormModel) => {
try {
await getBackendSrv().post('/api/org/invites', formData);
} catch (err) {
appEvents.emit(AppEvents.alertError, ['Failed to send invitation.', err.message]);
}
};