mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-03 06:27:02 +03:00
Replace some data-bind="click: function(){} with object functions to prevent eval()
This commit is contained in:
parent
95808ba377
commit
0d6499702d
17 changed files with 53 additions and 16 deletions
|
|
@ -22,6 +22,10 @@ export class AccountPopupView extends AbstractViewPopup {
|
|||
});
|
||||
}
|
||||
|
||||
hideError() {
|
||||
this.submitError('');
|
||||
}
|
||||
|
||||
submitForm(form) {
|
||||
if (!this.submitRequest() && form.reportValidity()) {
|
||||
const data = new FormData(form);
|
||||
|
|
|
|||
|
|
@ -93,6 +93,10 @@ export class OpenPgpGeneratePopupView extends AbstractViewPopup {
|
|||
});
|
||||
}
|
||||
|
||||
hideError() {
|
||||
this.submitError('');
|
||||
}
|
||||
|
||||
showError(e) {
|
||||
console.log(e);
|
||||
if (e?.message) {
|
||||
|
|
|
|||
|
|
@ -35,6 +35,10 @@ export class PluginPopupView extends AbstractViewPopup {
|
|||
});
|
||||
}
|
||||
|
||||
hideError() {
|
||||
this.saveError('');
|
||||
}
|
||||
|
||||
saveCommand() {
|
||||
const oConfig = {
|
||||
Id: this.id(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue