Renamed pnginfo quick links

All to Copy
Positive to Prompt
This commit is contained in:
MarcusNyne 2024-08-25 11:01:31 -04:00
parent 786809d5ca
commit 53712c623f
2 changed files with 3 additions and 3 deletions

View file

@ -35,7 +35,7 @@ def run_pnginfo(image):
info += f"""
<div class='pnginfo-page'>
<p><b>parameters</b><br>
{pnginfo_format_quicklink("All")}&nbsp;{pnginfo_format_quicklink("Positive")}"""
{pnginfo_format_quicklink("Copy")}&nbsp;{pnginfo_format_quicklink("Prompt")}"""
if parser.negative is not None:
info += f'&nbsp;{pnginfo_format_quicklink("Negative")}'
info += f"""&nbsp;{pnginfo_format_quicklink("Settings")}

View file

@ -245,13 +245,13 @@ function uiCopyRawText(elid) {
function uiCopyPngInfo(el, mode) {
var text = null;
if (mode == "Positive") {
if (mode == "Prompt") {
text = uiCopyRawText("pnginfo-positive");
} else if (mode == "Negative") {
text = uiCopyRawText("pnginfo-negative");
} else if (mode == "Settings") {
text = uiCopyRawText("pnginfo-settings");
} else if (mode == "All") {
} else if (mode == "Copy") {
text = "";
var t2 = uiCopyRawText("pnginfo-positive");
if (t2 != null) {