mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-01 05:29:20 +03:00
Remove useless clearPopup() functions
This commit is contained in:
parent
ba895ba887
commit
2a7348081a
9 changed files with 20 additions and 82 deletions
|
|
@ -12,10 +12,6 @@ class ViewOpenPgpKeyPopupView extends AbstractViewPopup {
|
|||
});
|
||||
}
|
||||
|
||||
clearPopup() {
|
||||
this.key('');
|
||||
}
|
||||
|
||||
selectKey() {
|
||||
const el = this.keyDom();
|
||||
if (el) {
|
||||
|
|
@ -28,11 +24,7 @@ class ViewOpenPgpKeyPopupView extends AbstractViewPopup {
|
|||
}
|
||||
|
||||
onShow(openPgpKey) {
|
||||
this.clearPopup();
|
||||
|
||||
if (openPgpKey) {
|
||||
this.key(openPgpKey.armor);
|
||||
}
|
||||
this.key(openPgpKey ? openPgpKey.armor : '');
|
||||
}
|
||||
|
||||
onBuild() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue