fix: missing arguements while creating a private workspace
This commit is contained in:
parent
2a96c48637
commit
0fe8d1e87b
1 changed files with 4 additions and 3 deletions
|
|
@ -532,9 +532,6 @@ frappe.views.Workspace = class Workspace {
|
|||
primary_action: (values) => {
|
||||
values.title = strip_html(values.title);
|
||||
d.hide();
|
||||
if (values.type === "Workspace") {
|
||||
this.setup_customization_buttons({ is_editable: true });
|
||||
}
|
||||
|
||||
let name = values.title + (values.is_public ? "" : "-" + frappe.session.user);
|
||||
let blocks = [
|
||||
|
|
@ -563,6 +560,10 @@ frappe.views.Workspace = class Workspace {
|
|||
external_link: values.external_link,
|
||||
};
|
||||
|
||||
if (values.type === "Workspace") {
|
||||
this.setup_customization_buttons(new_page);
|
||||
}
|
||||
|
||||
if (new_page.type !== "Workspace") {
|
||||
this.create_page(new_page);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue