Skip to content

Commit 69f65d6

Browse files
authored
Show revision on dictionary tag hover (#2413)
* Show revision on dictionary tag hover * The linter wants a single push
1 parent 6785deb commit 69f65d6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

ext/js/display/display-generator.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,8 @@ export class DisplayGenerator {
164164
const currentDictionaryInfo = dictionaryInfo.find(({title}) => title === dictionary);
165165
if (currentDictionaryInfo) {
166166
const dictionaryContentArray = [];
167-
dictionaryContentArray.push(currentDictionaryInfo.title);
167+
// Title and revision are required keys as per the schema.
168+
dictionaryContentArray.push(currentDictionaryInfo.title, `rev.${currentDictionaryInfo.revision}`);
168169
if (currentDictionaryInfo.author) {
169170
dictionaryContentArray.push('Author: ' + currentDictionaryInfo.author);
170171
}

0 commit comments

Comments
 (0)