Use multiple spellCheckDirty messages

This commit is contained in:
Ken Powers 2020-03-25 11:16:10 -04:00 committed by GitHub
parent d33cc9d554
commit c780c12df7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 20 additions and 14 deletions

View file

@ -141,9 +141,9 @@
'click .clear-data': 'onClearData',
},
render_attributes() {
const appStartSpellCheck = window.appStartInitialSpellcheckSetting;
const spellCheckDirty =
window.initialData.spellCheck !==
window.appStartInitialSpellcheckSetting;
window.initialData.spellCheck !== appStartSpellCheck;
return {
deviceNameLabel: i18n('deviceName'),
@ -173,7 +173,9 @@
spellCheckDescription: i18n('spellCheckDescription'),
spellCheckHidden: spellCheckDirty ? 'false' : 'true',
spellCheckDisplay: spellCheckDirty ? 'inherit' : 'none',
spellCheckDirtyText: i18n('spellCheckDirty'),
spellCheckDirtyText: appStartSpellCheck
? i18n('spellCheckWillBeDisabled')
: i18n('spellCheckWillBeEnabled'),
};
},
onClose() {