Compare commits

..

No commits in common. "a157ebe311e9368d955e2a6ffdfffd4a8ebb2806" and "e062f70f90aa63ac936c5fbe8dcdefeea2cea6b7" have entirely different histories.

3 changed files with 8 additions and 24 deletions

View File

@ -54,11 +54,7 @@
console.log("dates: " + myDate + ", " + fixedDate);
let resultDate = new Date(fixedDate);
console.log("dates: " + myDate + ", " + fixedDate + ", " + resultDate);
let options = {
year: "numeric", month: "numeric",
day: "numeric", hour: "2-digit", minute: "2-digit"
};
let status = productToAuctionDto.auctionStatus;
// Add a new div as the first child
if (isActive) {
console.log("isActive: " + isActive);
@ -69,28 +65,16 @@
'</p><span>' +
"No.: " + productToAuctionDto.sortIndex +
'</span></div>');
}
else if (status == AuctionStatus.Sold || status == AuctionStatus.NotSold) {
} else {
console.log("isActive: " + isActive);
productItem.prepend('<div id="' +
publicInfoOverlayId +
'" class="bg-secondary p-1 text-white text-center" style="position: absolute; width: calc(100% - 1rem); height: 50px; z-index: 1;"><p class="m-0"><i class="fa-solid fa-gavel"></i> ' +
'@T("Plugins.Misc.AuctionPlugin.Finished")' +
'" class="bg-primary p-1 text-white text-center" style="position: absolute; width: calc(100% - 1rem); height: 50px; z-index: 1;"><p class="m-0"><i class="fa-solid fa-gavel"></i> ' +
resultDate.toLocaleString() +
'</p><span>' +
"No.: " + productToAuctionDto.sortIndex +
'</span></div>');
}
else {
console.log("isActive: " + isActive);
productItem.prepend('<div id="' +
publicInfoOverlayId +
'" class="bg-primary p-1 text-white text-center" style="position: absolute; width: calc(100% - 1rem); height: 50px; z-index: 1;"><p class="m-0"><i class="fa-solid fa-gavel"></i> ' +
resultDate.toLocaleString([], options) +
'</p><span>' +
"No.: " + productToAuctionDto.sortIndex +
'</span></div>');
}
} else {
console.error("Product item not found with productId:", productId);

View File

@ -58,21 +58,21 @@
</div>
<div id="publicProductBidBox" class="p-3 @bgClass text-white">
<strong>#@(Model.AuctionDto.ProductToAuctionDtos.FirstOrDefault().SortIndex)</strong>
<p>#@Model.AuctionDto.ProductToAuctionDtos.FirstOrDefault().SortIndex</p>
<h4 id="bidBoxTitle">@title</h4>
<div class="d-flex justify-content-between">
<div class="m-auto">
<div>
<strong>Base Price:</strong>
<span class="value">
@($"{Model.BasePrice:c}")
@* @(decimal?.Round(Model.BasePrice, 2, MidpointRounding.AwayFromZero)) *@
</span>
</div>
<div class="m-auto">
<div>
<strong>Bid Step:</strong>
<span id="licitStepText" class="value">@($"{Model.LicitStep:c}")</span>
</div>
<div class="m-auto">
<div>
<button id="signalRBidButton" class="btn btn-success" style="text-transform: uppercase;" type="button" @(!bidButtonActive ? "disabled" : string.Empty)>
@T("Plugins.Misc.AuctionPlugin.BidButtonPrefix") @($"{Model.NextBidPrice:c}")
</button>