]> _ Git - fluidbook-html5.git/commitdiff
wait #4238 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 3 Feb 2021 11:14:49 +0000 (12:14 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 3 Feb 2021 11:14:49 +0000 (12:14 +0100)
js/libs/fluidbook/fluidbook.nav.js

index fddb66f3433cc81d0948699e1628b7b206085b26..6a116dd60535a1b8664af11bc047b4f8bcb3778a 100644 (file)
@@ -483,7 +483,7 @@ FluidbookNav.prototype = {
             } else if (icon === 'lang' && this.fluidbook.l10n.multilangEnabled) {
                 // Note: the "!" at the beginning of the title/help parameters means that we don't want these strings translated
                 link = this.addLink(navType, 'nav-locales', '#/locales', 'locales', '!' + this.fluidbook.l10n.getCurrentLanguageName(), '!Select Language', 'Control+L');
-            } else if (icon === 'archives') {
+            } else if (icon === 'archives' && this.fluidbook.settings.externalArchives) {
                 link = this.addLink(navType, 'nav-archives', '#/archives', 'archives', '!' + this.fluidbook.settings.archivesLabel, '!' + this.fluidbook.settings.archivesLabel, '');
             } else if (icon === 'help') {
                 // __('help')