implement change requests

This commit is contained in:
Robin Scholtes 2023-08-16 11:15:45 +12:00
parent e77ded4859
commit 15252ee5c6
7 changed files with 35 additions and 7 deletions

View file

@ -31,6 +31,8 @@ export class COperationList extends HTMLElement {
this.isCloneable = isCloneable;
this.icon = icon;
this.build();
window.addEventListener("operationadd", this.handleChange.bind(this));
window.addEventListener("operationremove", this.handleChange.bind(this));
window.addEventListener("favouritesupdate", this.handleChange.bind(this));
@ -56,6 +58,8 @@ export class COperationList extends HTMLElement {
/**
* Build c-operation-list
*
* @returns {HTMLElement}
*/
build() {
const ul = document.createElement("ul");