sync v3 notice draft
This commit is contained in:
@@ -4,7 +4,7 @@ import type { TransItemType } from "./i18n";
|
||||
|
||||
import { log } from "./moreOnLog";
|
||||
|
||||
export class SyncAlgoV2Modal extends Modal {
|
||||
export class SyncAlgoV3Modal extends Modal {
|
||||
agree: boolean;
|
||||
readonly plugin: RemotelySavePlugin;
|
||||
constructor(app: App, plugin: RemotelySavePlugin) {
|
||||
@@ -19,11 +19,11 @@ export class SyncAlgoV2Modal extends Modal {
|
||||
};
|
||||
|
||||
contentEl.createEl("h2", {
|
||||
text: t("syncalgov2_title"),
|
||||
text: t("syncalgov3_title"),
|
||||
});
|
||||
|
||||
const ul = contentEl.createEl("ul");
|
||||
t("syncalgov2_texts")
|
||||
t("syncalgov3_texts")
|
||||
.split("\n")
|
||||
.forEach((val) => {
|
||||
ul.createEl("li", {
|
||||
@@ -33,14 +33,14 @@ export class SyncAlgoV2Modal extends Modal {
|
||||
|
||||
new Setting(contentEl)
|
||||
.addButton((button) => {
|
||||
button.setButtonText(t("syncalgov2_button_agree"));
|
||||
button.setButtonText(t("syncalgov3_button_agree"));
|
||||
button.onClick(async () => {
|
||||
this.agree = true;
|
||||
this.close();
|
||||
});
|
||||
})
|
||||
.addButton((button) => {
|
||||
button.setButtonText(t("syncalgov2_button_disagree"));
|
||||
button.setButtonText(t("syncalgov3_button_disagree"));
|
||||
button.onClick(() => {
|
||||
this.close();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user