added ability to use invite link more than once

This commit is contained in:
vabene1111
2022-07-14 11:28:13 +02:00
parent 98a54ef38f
commit ba473123ba
7 changed files with 59 additions and 15 deletions

View File

@ -71,7 +71,7 @@
"Private_Recipe": "Private Recipe",
"Private_Recipe_Help": "Recipe is only shown to you and people its shared with.",
"reusable_help_text": "Should the invite link be usable for more than one user.",
"Add_Step": "Add Step",
"Keywords": "Keywords",
"Books": "Books",

View File

@ -669,7 +669,7 @@ export class Models {
apiName: "InviteLink",
paginated: false,
create: {
params: [["email", "group", "valid_until"]],
params: [["email", "group", "valid_until", "reusable"]],
form: {
email: {
form_field: true,
@ -694,6 +694,14 @@ export class Models {
label: "Valid Until",
placeholder: "",
},
reusable: {
form_field: true,
type: "checkbox",
field: "reusable",
label: "Reusable",
help_text: "reusable_help_text",
placeholder: "",
},
},
},
}

View File

@ -1357,6 +1357,12 @@ export interface InviteLink {
* @memberof InviteLink
*/
used_by?: number | null;
/**
*
* @type {boolean}
* @memberof InviteLink
*/
reusable?: boolean;
/**
*
* @type {string}
@ -1893,6 +1899,18 @@ export interface Recipe {
* @memberof Recipe
*/
last_cooked?: string;
/**
*
* @type {boolean}
* @memberof Recipe
*/
_private?: boolean;
/**
*
* @type {Array<CustomFilterShared>}
* @memberof Recipe
*/
shared?: Array<CustomFilterShared>;
}
/**
*