Fix payment request archival actions (#3443)

This commit is contained in:
d11n
2022-02-09 15:37:15 +01:00
committed by GitHub
parent c18f112f31
commit 699231fd92
4 changed files with 31 additions and 18 deletions

View File

@@ -336,9 +336,9 @@ namespace BTCPayServer.Controllers
model.Archived = !model.Archived;
await EditPaymentRequest(payReqId, model);
TempData[WellKnownTempData.SuccessMessage] = model.Archived
? "The payment request has been archived and will no longer appear in the payment request list by default again."
: "The payment request has been unarchived and will appear in the payment request list by default.";
return RedirectToAction("GetPaymentRequests");
? "The payment request has been archived and will no longer appear in the payment request list by default again."
: "The payment request has been unarchived and will appear in the payment request list by default.";
return RedirectToAction("GetPaymentRequests", new { storeId = store.Id });
}
return NotFound();