From e6b973165ab35cf52640e0679f289658e5bc2ac6 Mon Sep 17 00:00:00 2001 From: Robbie Antenesse Date: Fri, 7 Jun 2019 10:52:53 -0600 Subject: [PATCH] Correctly show/hide publicLinkDisplay after changing dictionaries --- src/js/account/sync.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/js/account/sync.js b/src/js/account/sync.js index 9fd2dd0..96c20f8 100644 --- a/src/js/account/sync.js +++ b/src/js/account/sync.js @@ -38,6 +38,7 @@ export function performSync(remoteDictionary) { if (success) { renderAll(); document.getElementById('accountSettingsChangeDictionary').value = window.currentDictionary.externalID; + document.getElementById('publicLinkDisplay').style.display = window.currentDictionary.settings.isPublic ? '' : 'none'; } else { console.error('word sync failed'); }