From b05960967098262c619e28be5238539c26b7b697 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Sun, 3 Nov 2019 12:54:18 -0500 Subject: Add outdated warning --- ext/bg/js/settings-dictionaries.js | 4 ++++ ext/bg/settings.html | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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}`; diff --git a/ext/bg/settings.html b/ext/bg/settings.html index d3465e61..19449261 100644 --- a/ext/bg/settings.html +++ b/ext/bg/settings.html @@ -492,7 +492,7 @@