Skip to content

Commit

Permalink
add dotnet missing notice to welcome messages
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Jan 8, 2024
1 parent 9a7583b commit 75af093
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Pages/Text2Image.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@
<div class="card border-danger mb-3 card-center-container">
<div class="card-header">DotNET @Utilities.DotNetVersMissing Missing</div>
<div class="card-body">
<p class="card-text">
<p id="dotnet_missing_message" class="card-text">
You do not seem to have DotNET @Utilities.DotNetVersMissing installed - this will be required in a future version of StableSwarmUI.
<br>Please install DotNET SDK @(Utilities.DotNetVersMissing).0 from <a href="https://dotnet.microsoft.com/en-us/download/dotnet/@(Utilities.DotNetVersMissing).0">https://dotnet.microsoft.com/en-us/download/dotnet/@(Utilities.DotNetVersMissing).0</a>
</p>
Expand Down
11 changes: 10 additions & 1 deletion src/wwwroot/js/genpage/welcomemessages.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,17 @@ function automaticWelcomeMessage(override = null) {
`New feature (2023-12-06): Tab Completion in prompts!\nJust type a '&lt;' symbol and watch the suggestions for prompt-syntax tools appear! <a href="https://github.com/Stability-AI/StableSwarmUI/discussions/11#discussioncomment-7775593">(Feature Announcement Link)</a>`,
`New feature (2023-12-07): Welcome messages!\nOh, well, hi, that's this right here. <a href="https://github.com/Stability-AI/StableSwarmUI/discussions/11#discussioncomment-7791189">(Feature Announcement Link)</a>`
];
let dotnetNotice = document.getElementById('dotnet_missing_message');
if (dotnetNotice) {
messages.push(dotnetNotice.innerHTML.trim());
}
if (override == null) {
override = Math.floor(Math.random() * messages.length);
if (dotnetNotice) {
override = messages.length - 1;
}
else {
override = Math.floor(Math.random() * messages.length);
}
}
override = override % messages.length;
if (override < 0) {
Expand Down

0 comments on commit 75af093

Please sign in to comment.