Skip to content

Commit

Permalink
fix: remove cloning done message
Browse files Browse the repository at this point in the history
  • Loading branch information
BreadGenie committed Jun 30, 2023
1 parent d3db57c commit 3ac0732
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions wiki/wiki/doctype/wiki_space/wiki_space.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,7 @@ frappe.ui.form.on("Wiki Space", {

frm.add_custom_button("Clone Wiki Space", () => {
frappe.prompt("Enter new Wiki Space's route", ({ value }) => {
frm
.call("clone_wiki_space_in_background", { new_space_route: value })
.then((r) =>
frappe.msgprint(
`Cloning completed. Visit the new Wiki Space at <a href="/app/wiki-space/${value}">${value}</a>`,
),
);
frm.call("clone_wiki_space_in_background", { new_space_route: value });
});
});
},
Expand Down

0 comments on commit 3ac0732

Please sign in to comment.