[#181] correctly handle checkmarks after favourites updates and resetting, update addSelectedClass to put selected on all operations with target data name ( as sometimes there will be 2 of the same rather than 1, in the case of a favourited operation ). Make updates to pass the op-title around based by the data-name attr instead of innerText

This commit is contained in:
Robin Scholtes 2023-04-27 14:40:08 +12:00
parent 8d693a7d0e
commit bc93969d4b
5 changed files with 18 additions and 6 deletions

View file

@ -46,6 +46,7 @@ class HTMLOperation {
* @returns {string}
*/
toStubHtml(removeIcon) {
console.log("toStubHtml ==>",this.name);
let html = `<li data-name="${this.name}" class="operation"`;
if (this.description) {