Handle empty project links correctly
This commit is contained in:
parent
7410fbcd4a
commit
75e21ccbe9
|
@ -7289,6 +7289,12 @@ pre,
|
|||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
.flex-shrink-0 {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.flex-grow-1 {
|
||||
flex-grow: 1;
|
||||
}
|
||||
.flex-fair {
|
||||
flex-basis: 1px;
|
||||
flex-grow: 1;
|
||||
|
@ -7705,19 +7711,6 @@ pre,
|
|||
background-color: var(--bg-5);
|
||||
}
|
||||
}
|
||||
|
||||
.not-first-of-type:first-of-type {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.not-last:last-child {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.not-last-of-type:last-of-type {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.svgicon svg {
|
||||
fill: currentColor;
|
||||
stroke: currentColor;
|
||||
|
|
|
@ -464,9 +464,15 @@
|
|||
function updateLinksJSON() {
|
||||
const links = [];
|
||||
for (const l of linksContainer.querySelectorAll(".link_row")) {
|
||||
const value = l.querySelector(".link_name").value;
|
||||
const url = l.querySelector(".link_url").value;
|
||||
if (!url) {
|
||||
continue;
|
||||
}
|
||||
|
||||
links.push({
|
||||
"name": l.querySelector(".link_name").value,
|
||||
"url": l.querySelector(".link_url").value,
|
||||
"name": name,
|
||||
"url": url,
|
||||
});
|
||||
}
|
||||
linksJSONInput.value = JSON.stringify(links);
|
||||
|
|
Loading…
Reference in New Issue