Merge pull request #105 from wutipong/feature/load-workflow-sort

sort workflow items in the load workflow menu
This commit is contained in:
pythongosssss
2024-01-03 17:51:13 +00:00
committed by GitHub
+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";
}