Improved icon font view

This commit is contained in:
djmaze 2021-02-11 17:46:29 +01:00
parent 93738eac22
commit 4a8c9f8e18
31 changed files with 115 additions and 196 deletions

View file

@ -89,10 +89,9 @@ class MessageOpenPgpPopupView extends AbstractViewPopup {
oDom.addEventListener('click', event => {
const el = event.target.closestWithin('.key-list__item', oDom);
if (el) {
oDom.querySelectorAll('.key-list__item .key-list__item__radio').forEach(node => {
node.classList.toggle('icon-radio-unchecked', el !== node);
node.classList.toggle('icon-radio-checked', el === node);
});
oDom.querySelectorAll('.key-list__item .key-list__item__radio').forEach(node =>
node.textContent = el === node ? '⦿' : '○'
);
self.selectedKey(ko.dataFor(el)); // eslint-disable-line no-invalid-this

View file

@ -16,7 +16,7 @@ class NewOpenPgpKeyPopupView extends AbstractViewPopup {
name: '',
password: '',
keyBitLength: 2048,
keyBitLength: 4096,
submitRequest: false,
submitError: ''
@ -90,7 +90,7 @@ class NewOpenPgpKeyPopupView extends AbstractViewPopup {
this.email('');
this.emailError(false);
this.keyBitLength(2048);
this.keyBitLength(4096);
this.submitError('');
}