mirror of
https://github.com/Alamantus/Lexiconga.git
synced 2025-05-09 19:51:26 +02:00
Correctly show/hide publicLinkDisplay after changing dictionaries
This commit is contained in:
parent
ab75db9a39
commit
f52fcb08d5
1 changed files with 1 additions and 0 deletions
|
@ -38,6 +38,7 @@ export function performSync(remoteDictionary) {
|
||||||
if (success) {
|
if (success) {
|
||||||
renderAll();
|
renderAll();
|
||||||
document.getElementById('accountSettingsChangeDictionary').value = window.currentDictionary.externalID;
|
document.getElementById('accountSettingsChangeDictionary').value = window.currentDictionary.externalID;
|
||||||
|
document.getElementById('publicLinkDisplay').style.display = window.currentDictionary.settings.isPublic ? '' : 'none';
|
||||||
} else {
|
} else {
|
||||||
console.error('word sync failed');
|
console.error('word sync failed');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue