use the much shorter "Reset" label in config dialog

This commit is contained in:
tophf 2017-12-08 22:32:35 +03:00
parent 8a777b5d23
commit ae9d33cf37

View File

@ -26,11 +26,20 @@ function configDialog(style) {
$createLink({className: '.external-support', href: data.supportURL}, t('externalFeedback'))), $createLink({className: '.external-support', href: data.supportURL}, t('externalFeedback'))),
$create('.config-body', elements) $create('.config-body', elements)
], ],
buttons: [ buttons: [{
{textContent: t('confirmSave'), dataset: {cmd: 'save'}, disabled: true, onclick: save}, textContent: t('confirmSave'),
{textContent: t('confirmDefault'), dataset: {cmd: 'default'}, onclick: useDefault}, dataset: {cmd: 'save'},
{textContent: t('confirmClose'), dataset: {cmd: 'close'}}, disabled: true,
], onclick: save,
}, {
textContent: t('genericResetLabel'),
title: t('optionsReset'),
dataset: {cmd: 'default'},
onclick: useDefault,
}, {
textContent: t('confirmClose'),
dataset: {cmd: 'close'},
}],
onshow, onshow,
}).then(onhide); }).then(onhide);