Skip to content

Commit

Permalink
ref: alldataexim stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Sv443 committed Jan 28, 2025
1 parent 73f506a commit 7584662
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/dialogs/allDataExIm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,11 @@ async function renderBody(opts: ExImDialogOpts): Promise<HTMLElement> {
chkEl.title = t(`data_stores.disable.${id}`);

chkEl.addEventListener("change", async () => {
const kwd = chkEl.checked ? "disable" : "enable";
rowEl.title = t(`data_stores.${kwd}.${id}`);
chkEl.title = t(`data_stores.${kwd}.${id}`);
lblEl.textContent = t(`data_stores.${kwd}.${id}`);

if(dataEl.classList.contains("revealed"))
dataEl.value = filter(await consumeStringGen(opts.exportData));
});
Expand All @@ -100,6 +105,7 @@ async function renderBody(opts: ExImDialogOpts): Promise<HTMLElement> {
exportPartsCont.appendChild(rowEl);
}

/** Filters out all data stores that are not checked */
const filter = (data: string) => {
const exportIds: string[] = [];

Expand Down

0 comments on commit 7584662

Please sign in to comment.