[refactor] improve link panel front when no display item is needed

This commit is contained in:
zombieFox 2020-06-14 12:05:21 +01:00
parent 02c47571fd
commit a3dc286fb4
1 changed files with 3 additions and 1 deletions

View File

@ -1064,7 +1064,9 @@ var link = (function() {
if (helper.checkIfValidString(stagedLink.link.image)) {
linkPanelFront.appendChild(linkImage);
};
linkPanelFront.appendChild(linkDisplay);
if ((linkDisplayLetter != null || linkDisplayIcon != null || linkDisplayImage != null) || (helper.checkIfValidString(stagedLink.link.name))) {
linkPanelFront.appendChild(linkDisplay);
};
linkLeft.appendChild(linkLeftIcon);
linkControl.appendChild(linkLeft);
linkHandle.appendChild(linkHandleIcon);