Skip to content

Commit 5d89669

Browse files
committed
add after install to Live reload for clarity
1 parent 0b0ba9c commit 5d89669

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

src/_locales/en/messages.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -743,6 +743,10 @@
743743
"message": "See a full list of rules",
744744
"description": "Stylelint or CSSLint rules label added immediately before a link"
745745
},
746+
"liveReloadAfterInstall": {
747+
"message": "Live reload after installation",
748+
"description": "The alternative label of \"Live reload\" checkbox (liveReloadLabel translation key) for a style that wasn't installed yet"
749+
},
746750
"liveReloadError": {
747751
"message": "An error occurred while watching the file",
748752
"description": "The label of live-reload error"

src/install-usercss/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,8 @@ setTimeout(() => !cm && showSpinner($id('header')), 200);
126126
updateMeta();
127127
if (dup) {
128128
($(`[name="ss-scheme"][value="${dup.preferScheme}"]`) || {}).checked = true;
129+
} else {
130+
$('.live-reload span').textContent = t('liveReloadAfterInstall');
129131
}
130132
for (let type of ['in', 'ex']) {
131133
const el = $id('ss-' + (type += 'clusions'));

0 commit comments

Comments
 (0)