mirror of
https://github.com/hcengineering/platform.git
synced 2024-11-22 21:50:34 +03:00
Add props to the "CreateObject" popup (#2552)
Signed-off-by: Sergei Ogorelkov <sergei.ogorelkov@xored.com>
This commit is contained in:
parent
7669e96b07
commit
dd68380e7e
@ -150,7 +150,7 @@
|
||||
return
|
||||
}
|
||||
const c = create
|
||||
showPopup(c.component, {}, 'top', async (res) => {
|
||||
showPopup(c.component, c.props ?? {}, 'top', async (res) => {
|
||||
if (res != null) {
|
||||
// We expect reference to new object.
|
||||
const newPerson = await client.findOne(_class, { _id: res })
|
||||
|
@ -19,6 +19,7 @@ export interface ObjectSearchResult {
|
||||
*/
|
||||
export interface ObjectCreate {
|
||||
component: AnyComponent
|
||||
props?: Record<string, any>
|
||||
label: IntlString
|
||||
update?: (doc: Doc) => string
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user