aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-11-03 12:54:18 -0500
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-11-07 20:30:55 -0500
commitb05960967098262c619e28be5238539c26b7b697 (patch)
tree8452e7ddd0713e682ecf30d62b0005412c6b0a78 /ext/bg/js
parentcad0648cbe2b7511cd530eabfe526a40c1c090ba (diff)
Add outdated warning
Diffstat (limited to 'ext/bg/js')
-rw-r--r--ext/bg/js/settings-dictionaries.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/bg/js/settings-dictionaries.js b/ext/bg/js/settings-dictionaries.js
index 921e0813..5a722c6f 100644
--- a/ext/bg/js/settings-dictionaries.js
+++ b/ext/bg/js/settings-dictionaries.js
@@ -171,6 +171,10 @@ class SettingsDictionaryEntryUI {
this.priorityInput = this.content.querySelector('.dict-priority');
this.deleteButton = this.content.querySelector('.dict-delete-button');
+ if (this.dictionaryInfo.version < 3) {
+ this.content.querySelector('.dict-outdated').hidden = false;
+ }
+
this.content.querySelector('.dict-title').textContent = this.dictionaryInfo.title;
this.content.querySelector('.dict-revision').textContent = `rev.${this.dictionaryInfo.revision}`;