added way for users to share all fields
This commit is contained in:
parent
4db21a3d0c
commit
3802691977
4 changed files with 173 additions and 24 deletions
|
|
@ -103,7 +103,7 @@ export default function FieldProvider(props: PropsWithChildren<Props>) {
|
|||
};
|
||||
|
||||
const shareAll = (email: string, permissions: pond.Permission[]) => {
|
||||
let url = pondURL("/fields/shareAll")
|
||||
let url = pondURL("/shareAllFields")
|
||||
if (as) url = url + "?as=" + as
|
||||
return new Promise<AxiosResponse>((resolve, reject) => {
|
||||
post(url, {
|
||||
|
|
@ -118,7 +118,7 @@ export default function FieldProvider(props: PropsWithChildren<Props>) {
|
|||
}
|
||||
|
||||
const shareAllByKey = (key: string, permissions: pond.Permission[]) => {
|
||||
let url = pondURL("/fields/shareAllByKey")
|
||||
let url = pondURL("/shareAllFieldsByKey")
|
||||
if (as) url = url + "?as=" + as
|
||||
return new Promise<AxiosResponse>((resolve, reject) => {
|
||||
post(url, {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue