1
0
Fork 0
mirror of https://github.com/Alamantus/Lexiconga.git synced 2025-05-08 11:11:16 +02:00

Correctly show/hide publicLinkDisplay after changing dictionaries

This commit is contained in:
Robbie Antenesse 2019-06-07 10:52:53 -06:00
parent ab75db9a39
commit f52fcb08d5

View file

@ -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');
}