-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: generate missing audio in bulk
- Loading branch information
1 parent
344cb17
commit dee09f8
Showing
2 changed files
with
19 additions
and
5 deletions.
There are no files selected for viewing
17 changes: 12 additions & 5 deletions
17
listen_to_blog/listen_to_blog/doctype/elevenlabs_settings/elevenlabs_settings.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,15 @@ | ||
// Copyright (c) 2024, BWH and contributors | ||
// For license information, please see license.txt | ||
|
||
// frappe.ui.form.on("ElevenLabs Settings", { | ||
// refresh(frm) { | ||
|
||
// }, | ||
// }); | ||
frappe.ui.form.on("ElevenLabs Settings", { | ||
refresh(frm) { | ||
frm.add_custom_button("Generate Missing Audio Files", () => { | ||
frappe.call("listen_to_blog.utils.generate_missing_audio_files").then(() => { | ||
frappe.show_alert({ | ||
message: "Successfully generated!", | ||
indicator: "green" | ||
}) | ||
}) | ||
}) | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters