feat: notice in node list

update DB
This commit is contained in:
dr.lt.data
2023-12-13 09:55:55 +09:00
parent 3d39819527
commit 28c7ef95b8
8 changed files with 150 additions and 93 deletions

View File

@@ -48,7 +48,7 @@ docStyle.innerHTML = `
#cm-channel-badge {
color: white;
background-color: #AA0000;
width: 150px;
width: 220px;
height: 23px;
font-size: 13px;
border-radius: 5px;

View File

@@ -575,9 +575,11 @@ export class CustomNodesInstaller extends ComfyDialog {
}
});
data5.appendChild(installBtn);
if(!data.author.startsWith('#NOTICE')){
data5.appendChild(installBtn);
}
if(data.installed == 'Fail')
if(data.installed == 'Fail' || data.author.startsWith('#NOTICE'))
dataRow.style.backgroundColor = "#880000";
else
dataRow.style.backgroundColor = "var(--bg-color)";
@@ -702,7 +704,7 @@ export class CustomNodesInstaller extends ComfyDialog {
let channel_badge = '';
if(this.channel != 'default') {
channel_badge = $el('span', {id:'cm-channel-badge'}, [`Channel: ${this.channel}`]);
channel_badge = $el('span', {id:'cm-channel-badge'}, [`Channel: ${this.channel} (Incomplete list)`]);
}
else {