inform about auto-saving
This commit is contained in:
parent
b42da19be5
commit
9e2ceff264
|
@ -88,6 +88,9 @@
|
||||||
"message": "Author",
|
"message": "Author",
|
||||||
"description": "Label for the style author"
|
"description": "Label for the style author"
|
||||||
},
|
},
|
||||||
|
"autosaveNotice": {
|
||||||
|
"message": "Changes are saved automatically"
|
||||||
|
},
|
||||||
"backupButtons": {
|
"backupButtons": {
|
||||||
"message": "Backup",
|
"message": "Backup",
|
||||||
"description": "Heading for backup"
|
"description": "Heading for backup"
|
||||||
|
|
|
@ -792,12 +792,14 @@ body:not(.find-open) [data-match-highlight-count="1"] .CodeMirror-selection-high
|
||||||
}
|
}
|
||||||
|
|
||||||
#help-popup .buttons {
|
#help-popup .buttons {
|
||||||
text-align: center;
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
margin-top: .75em;
|
margin-top: .75em;
|
||||||
}
|
}
|
||||||
.non-windows #help-popup .buttons {
|
.non-windows #help-popup .buttons {
|
||||||
direction: rtl;
|
direction: rtl;
|
||||||
text-align: right;
|
justify-content: start;
|
||||||
}
|
}
|
||||||
#help-popup button[name^="import"] {
|
#help-popup button[name^="import"] {
|
||||||
line-height: 1.5rem;
|
line-height: 1.5rem;
|
||||||
|
@ -819,8 +821,8 @@ body:not(.find-open) [data-match-highlight-count="1"] .CodeMirror-selection-high
|
||||||
#help-popup .rules p {
|
#help-popup .rules p {
|
||||||
margin: .25em 0;
|
margin: .25em 0;
|
||||||
}
|
}
|
||||||
#help-popup .buttons button:nth-child(n + 2) {
|
#help-popup .buttons > :nth-child(n + 2) {
|
||||||
margin-left: .5em;
|
margin-inline: .5em 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/************ lint ************/
|
/************ lint ************/
|
||||||
|
|
|
@ -25,6 +25,7 @@ function StyleSettings() {
|
||||||
ui,
|
ui,
|
||||||
$create('.buttons', [
|
$create('.buttons', [
|
||||||
$create('button', {onclick: helpPopup.close}, t('confirmClose')),
|
$create('button', {onclick: helpPopup.close}, t('confirmClose')),
|
||||||
|
createInfo({title: t('autosaveNotice')}),
|
||||||
]),
|
]),
|
||||||
]));
|
]));
|
||||||
$('#help-popup').className = 'style-settings-popup';
|
$('#help-popup').className = 'style-settings-popup';
|
||||||
|
@ -80,6 +81,13 @@ function StyleSettings() {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function createInfo(props) {
|
||||||
|
const info = $('.svg-icon.info').closest('a').cloneNode(true);
|
||||||
|
info.id = '';
|
||||||
|
info.dataset.cmd = 'note';
|
||||||
|
return Object.assign(info, props);
|
||||||
|
}
|
||||||
|
|
||||||
function createInput(selector, getter, setter) {
|
function createInput(selector, getter, setter) {
|
||||||
const el = $(selector, ui);
|
const el = $(selector, ui);
|
||||||
el.addEventListener('change', setter);
|
el.addEventListener('change', setter);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user