eslint fixes

This commit is contained in:
Robin Scholtes 2023-08-15 20:33:09 +12:00
parent 9ea785fc63
commit ab8b48c437
5 changed files with 10 additions and 9 deletions

View file

@ -145,7 +145,7 @@ class HTMLIngredient {
for="${this.id}"> for="${this.id}">
${this.name} ${this.name}
</label> </label>
</div>` </div>`;
break; break;
case "option": case "option":
html += `<div class="form-group ing-medium"> html += `<div class="form-group ing-medium">

View file

@ -2,4 +2,7 @@ operations:
- UI tests etc. - UI tests etc.
manual testing issues: manual testing issues:
Recipe;
- some reordering in recipe is not super smooth ( when the recipe-li is very large for instance ) - some reordering in recipe is not super smooth ( when the recipe-li is very large for instance )
- double click deleting c-recipe-li not reliable

View file

@ -31,9 +31,9 @@ export class COperationList extends HTMLElement {
this.isCloneable = isCloneable; this.isCloneable = isCloneable;
this.icon = icon; this.icon = icon;
window.addEventListener("operationadd", this.handleChange.bind(this)) window.addEventListener("operationadd", this.handleChange.bind(this));
window.addEventListener("operationremove", this.handleChange.bind(this)) window.addEventListener("operationremove", this.handleChange.bind(this));
window.addEventListener("favouritesupdate", this.handleChange.bind(this)) window.addEventListener("favouritesupdate", this.handleChange.bind(this));
} }
/** /**
@ -180,7 +180,7 @@ export class COperationList extends HTMLElement {
if (li.classList.contains(`${className}`)) { if (li.classList.contains(`${className}`)) {
li.classList.remove(`${className}`); li.classList.remove(`${className}`);
} }
})) }));
if (srcListItems.length !== 0) { if (srcListItems.length !== 0) {
srcListItems.forEach((item => { srcListItems.forEach((item => {

View file

@ -104,7 +104,7 @@ export class CRecipeLi extends HTMLElement {
* *
* @fires Manager#statechange * @fires Manager#statechange
*/ */
removeOperation(){ removeOperation() {
this.remove(); this.remove();
log.debug("Operation removed from recipe"); log.debug("Operation removed from recipe");
window.dispatchEvent(this.app.manager.statechange); window.dispatchEvent(this.app.manager.statechange);
@ -190,7 +190,7 @@ export class CRecipeLi extends HTMLElement {
*/ */
cloneNode() { cloneNode() {
const { app, name, args } = this; const { app, name, args } = this;
return new CRecipeLi( app, name, args ); return new CRecipeLi(app, name, args);
} }
} }

View file

@ -4,8 +4,6 @@
* @license Apache-2.0 * @license Apache-2.0
*/ */
import { debounce } from "../../core/Utils.mjs";
/** /**
* Waiter to handle events related to the window object. * Waiter to handle events related to the window object.
*/ */