MCPcopy
hub / github.com/remotely-save/remotely-save / onOpen

Method onOpen

src/settings.ts:166–190  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

164 }
165
166 onOpen() {
167 const { contentEl } = this;
168
169 const t = (x: TransItemType, vars?: any) => {
170 return this.plugin.i18n.t(x, vars);
171 };
172
173 // contentEl.setText("Add Or change password.");
174 contentEl.createEl("h2", { text: t("modal_encryptionmethod_title") });
175 t("modal_encryptionmethod_shortdesc")
176 .split("\n")
177 .forEach((val, idx) => {
178 contentEl.createEl("p", {
179 text: stringToFragment(val),
180 });
181 });
182
183 new Setting(contentEl).addButton((button) => {
184 button.setButtonText(t("confirm"));
185 button.onClick(async () => {
186 this.close();
187 });
188 button.setClass("encryptionmethod-second-confirm");
189 });
190 }
191
192 onClose() {
193 const { contentEl } = this;

Callers

nothing calls this directly

Calls 1

stringToFragmentFunction · 0.90

Tested by

no test coverage detected