Skip to content

Commit

Permalink
Fix Adyen Admin Panel title name
Browse files Browse the repository at this point in the history
  • Loading branch information
Kwok-he-Chu committed Jan 5, 2024
1 parent 651a527 commit 5140e9f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ public AdminController(ApplicationProperty applicationProperty) {
log.warn("ADYEN_KEY is UNDEFINED");
throw new RuntimeException("ADYEN_KEY is UNDEFINED");
}

var client = new Client(applicationProperty.getApiKey(), Environment.TEST);
this.modificationsApi = new ModificationsApi(client);
}
Expand All @@ -57,7 +56,6 @@ public String result(@PathVariable String status, @PathVariable String reference
result = "error";
}

model.addAttribute("title", "Adyen Admin Result");
model.addAttribute("type", result);
model.addAttribute("reference", reference);
model.addAttribute("refusalReason", refusalReason);
Expand All @@ -68,10 +66,7 @@ public String result(@PathVariable String status, @PathVariable String reference
@GetMapping("/admin/details/{reference}")
public String details(@PathVariable String reference, Model model) {
PaymentModel data = Storage.findByMerchantReference(reference);

model.addAttribute("title", "Adyen Admin Payment History");
model.addAttribute("data", data);

return "admin/details";
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
layout:decorate="~{layout}">
<head>
<title>Admin View</title>
<title>Admin Details View</title>
</head>
<body>
<div layout:fragment="content" class="main-container">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
layout:decorate="~{layout}">
<head>
<title>Admin View</title>
<title>Adyen Admin Panel</title>
</head>
<body>
<div layout:fragment="content" class="main-container">
Expand Down

0 comments on commit 5140e9f

Please sign in to comment.