瀏覽代碼

ref: alldataexim stuff

Sv443 2 月之前
父節點
當前提交
7584662218
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      src/dialogs/allDataExIm.ts

+ 6 - 0
src/dialogs/allDataExIm.ts

@@ -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));
       });
@@ -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[] = [];