Skip to content

Commit 525b50d

Browse files
committed
feat: update transaction handling and enhance descriptions in transactions.json
1 parent 42a18b3 commit 525b50d

File tree

2 files changed

+20
-11
lines changed

2 files changed

+20
-11
lines changed

webapp/controller/Main.controller.ts

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export default class Main extends BaseController {
7575
localStorage.setItem("copyWithPrefix", "true");
7676
}
7777
if (localStorage.getItem("resetSearchAfterCopy") === null) {
78-
localStorage.setItem("resetSearchAfterCopy", "true");
78+
localStorage.setItem("resetSearchAfterCopy", "false");
7979
}
8080
if (localStorage.getItem("theme") === null) {
8181
localStorage.setItem("theme", "System");
@@ -258,10 +258,9 @@ export default class Main extends BaseController {
258258
void this.handleAddTransaction(
259259
inputCode.getValue(),
260260
inputTitle.getValue(),
261-
inputDescription.getValue()
261+
inputDescription.getValue(),
262+
dialog
262263
);
263-
dialog.close();
264-
dialog.destroy();
265264
},
266265
}),
267266
endButton: new Button({
@@ -281,17 +280,21 @@ export default class Main extends BaseController {
281280
private async handleAddTransaction(
282281
tcode: string,
283282
title: string,
284-
description: string
283+
description: string,
284+
dialog: Dialog
285285
): Promise<void> {
286286
if (await this.transactionExists(tcode)) {
287287
MessageToast.show(`Transaktionscode ${tcode} existiert bereits.`);
288288
} else {
289289
await this.addTransaction(tcode, title, description);
290+
dialog.close();
291+
dialog.destroy();
290292
}
291293
}
292294

293295
private async transactionExists(tcode: string): Promise<boolean> {
294-
const transactions = await this.db.getTransactions();
296+
const customTransactions = await this.db.getTransactions();
297+
const transactions = [...this.standardTransactions, ...customTransactions];
295298
return transactions.some((item) => item.tcode === tcode);
296299
}
297300

webapp/model/transactions.json

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@
3232
{
3333
"tcode": "SEGW",
3434
"title": "OData V2 Service Builder",
35-
"description": "Develop and maintain OData services",
35+
"description": "Develop and maintain OData services (ODATA V2)",
3636
"tags": "UI5"
3737
},
3838
{
3939
"tcode": "SICF",
4040
"title": "HTTP Service Maintenance",
41-
"description": "Activate and manage web services",
41+
"description": "Activate and manage web services and push channel",
4242
"tags": "UI5"
4343
},
4444
{
@@ -50,7 +50,7 @@
5050
{
5151
"tcode": "PFCG",
5252
"title": "Role Maintenance",
53-
"description": "Create, assign, and manage Fiori roles",
53+
"description": "Create, assign, and manage roles",
5454
"tags": "UI5"
5555
},
5656
{
@@ -134,7 +134,13 @@
134134
{
135135
"tcode": "SE03",
136136
"title": "Transport Organizer Tools",
137-
"description": "Advanced transport management",
137+
"description": "Advanced transport management to add, unlock or delete objects from transports",
138+
"tags": "GENERAL"
139+
},
140+
{
141+
"tcode": "stms",
142+
"title": "Transport Management System",
143+
"description": "Manage and monitor transport requests",
138144
"tags": "GENERAL"
139145
},
140146
{
@@ -170,7 +176,7 @@
170176
{
171177
"tcode": "/iwfnd/virus_scan",
172178
"title": "Virus Scan Profile Configuration",
173-
"description": "Set up virus scanning for UI5",
179+
"description": "Set up virus scanning for UI5 or disable it system-wide",
174180
"tags": "UI5"
175181
},
176182
{

0 commit comments

Comments
 (0)