Skip to content

Commit 8537b29

Browse files
committed
feat: update transaction messages to English and adjust column widths for responsive design
1 parent 525b50d commit 8537b29

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

webapp/controller/Main.controller.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ export default class Main extends BaseController {
252252
text: "Add",
253253
press: () => {
254254
if (inputCode.getValue().trim().length === 0) {
255-
MessageToast.show("Transaktionscode darf nicht leer sein.");
255+
MessageToast.show("Transaction code cannot be empty.");
256256
return;
257257
}
258258
void this.handleAddTransaction(
@@ -284,7 +284,7 @@ export default class Main extends BaseController {
284284
dialog: Dialog
285285
): Promise<void> {
286286
if (await this.transactionExists(tcode)) {
287-
MessageToast.show(`Transaktionscode ${tcode} existiert bereits.`);
287+
MessageToast.show(`Transaction ${tcode} exists already.`);
288288
} else {
289289
await this.addTransaction(tcode, title, description);
290290
dialog.close();

webapp/view/Main.view.xml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,13 +122,17 @@
122122
</Menu>
123123
</contextMenu>
124124
<columns>
125-
<Column width="200px">
125+
<Column
126+
width="{= ${device>/system/desktop} ? '200px' : 'auto' }"
127+
>
126128
<Text text="Transaction code" />
127129
</Column>
128-
<Column width="300px">
130+
<Column
131+
width="{= ${device>/system/desktop} ? '300px' : 'auto' }"
132+
>
129133
<Text text="Title" />
130134
</Column>
131-
<Column>
135+
<Column visible="{= ${device>/system/desktop} }">
132136
<Text text="Description" />
133137
</Column>
134138
<Column hAlign="Right" />
@@ -141,7 +145,10 @@
141145
<cells>
142146
<Text text="{= ${tcode}.toUpperCase() }" />
143147
<Text text="{ path: 'title' }" />
144-
<Text text="{ path: 'description' }" />
148+
<Text
149+
text="{ path: 'description' }"
150+
visible="{= ${device>/system/desktop} }"
151+
/>
145152
<HBox justifyContent="End">
146153
<Button
147154
icon="{= ${favorite} ? 'sap-icon://favorite' : 'sap-icon://unfavorite' }"

0 commit comments

Comments
 (0)