Skip to content

Commit

Permalink
Refresh page after updating users
Browse files Browse the repository at this point in the history
  • Loading branch information
benpate committed Nov 9, 2023
1 parent b8a126b commit e153297
Showing 1 changed file with 19 additions and 16 deletions.
35 changes: 19 additions & 16 deletions _embed/templates/admin-users/template.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,23 @@
"steps": [{
"step": "as-modal",
"steps": [
{
"step": "add",
"type": "user",
"form": {
"type": "layout-vertical",
"label": "Add a Person",
"children": [
{"type": "text", "label": "Full Name", "path": "displayName"},
{"type": "text", "label": "Email Address", "path": "emailAddress"},
{"type": "text", "label": "Username", "path": "username"},
{"type": "toggle", "label": "Public?", "path": "isPublic"},
{"type": "multiselect", "label": "Group(s)", "path": "groupIds", "options":{"provider":"groups", "sort":false}}
]
}
}]
{
"step": "add",
"type": "user",
"form": {
"type": "layout-vertical",
"label": "Add a Person",
"children": [
{"type": "text", "label": "Full Name", "path": "displayName"},
{"type": "text", "label": "Email Address", "path": "emailAddress"},
{"type": "text", "label": "Username", "path": "username"},
{"type": "toggle", "label": "Public?", "path": "isPublic"},
{"type": "multiselect", "label": "Group(s)", "path": "groupIds", "options":{"provider":"groups", "sort":false}}
]
}
},
{"step": "refresh-page"}
]
}]
},

Expand All @@ -52,7 +54,8 @@
},
"options": ["delete:/admin/users/{{.UserID}}/delete"]
},
{"step": "save", "type":"user", "comment": "Updated by {{.Author}}"}
{"step": "save", "type":"user", "comment": "Updated by {{.Author}}"},
{"step": "refresh-page"}
]
}]
},
Expand Down

0 comments on commit e153297

Please sign in to comment.