sort workflow items.

This commit is contained in:
Wutipong Wongsakuldej
2023-10-21 18:51:30 +07:00
committed by GitHub
parent 27555d4f71
commit 3cac1dac84
+3
View File
@@ -81,6 +81,9 @@ async function saveWorkflow(name, workflow, overwrite) {
class PysssssWorkflows {
async load() {
this.workflows = await getWorkflows();
if(this.workflows.length) {
this.workflows.sort();
}
this.loadMenu.style.display = this.workflows.length ? "flex" : "none";
}