1
0
Fork 0
mirror of https://github.com/miawinter98/just-short-it.git synced 2024-09-20 01:39:00 +00:00

fixed: inspect not properly displaying deletion

This commit is contained in:
Mia Rose Winter 2023-11-18 16:07:41 +01:00
parent 61fba41cd6
commit 2f6f77baf6
Signed by: miawinter
GPG key ID: 4B6F6A83178F595E

View file

@ -11,13 +11,13 @@
<div class="grid place-items-center h-full">
<section class="w-full md:max-w-lg flex flex-col gap-4">
@if (Model is null) {
<MessageComponent Message="@Message" Type="Type" />
<h1 class="text-3xl lg:text-5xl text-error text-center mb-6">
URL not found
</h1>
<h2 class="text-2xl lg:text-4xl text-secondary-content text-center mb-3">
The given ID does not exist, it may have expired or been deleted.
</h2>
<MessageComponent Message="@Message" Type="Type" />
} else {
<h1 class="text-3xl lg:text-5xl text-primary-content text-center mb-6">Inspect</h1>
@ -71,7 +71,9 @@
Type = MessageComponent.AlertType.Success;
Message = $"Id '{Id}' successfully deleted.";
return;
Id = null;
Model = null;
}
}