Merge pull request #105 from wutipong/feature/load-workflow-sort
sort workflow items in the load workflow menu
This commit is contained in:
@@ -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";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user