summaryrefslogtreecommitdiff
path: root/app/src/main/res/navigation/nav_graph.xml
diff options
context:
space:
mode:
authorTorsten Grote <t@grobox.de>2020-03-16 15:53:58 -0300
committerTorsten Grote <t@grobox.de>2020-03-17 11:32:46 -0300
commit7eebd0754d16eccadeb3d1cb53c1cebffda65d07 (patch)
treec402456c20863daddec352421d8ad38f10a7709f /app/src/main/res/navigation/nav_graph.xml
parentbca790d381880b3077df0e37cf29b7a2f9e2266c (diff)
downloadmerchant-terminal-android-7eebd0754d16eccadeb3d1cb53c1cebffda65d07.tar.gz
merchant-terminal-android-7eebd0754d16eccadeb3d1cb53c1cebffda65d07.tar.bz2
merchant-terminal-android-7eebd0754d16eccadeb3d1cb53c1cebffda65d07.zip
Add refund button to history items and allow to refund ordersHEADmaster
(still hidden in UI because API incomplete/broken)
Diffstat (limited to 'app/src/main/res/navigation/nav_graph.xml')
-rw-r--r--app/src/main/res/navigation/nav_graph.xml25
1 files changed, 22 insertions, 3 deletions
diff --git a/app/src/main/res/navigation/nav_graph.xml b/app/src/main/res/navigation/nav_graph.xml
index 0d7d870..2e337f2 100644
--- a/app/src/main/res/navigation/nav_graph.xml
+++ b/app/src/main/res/navigation/nav_graph.xml
@@ -1,5 +1,4 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
+<?xml version="1.0" encoding="utf-8"?><!--
~ This file is part of GNU Taler
~ (C) 2020 Taler Systems S.A.
~
@@ -57,7 +56,27 @@
android:id="@+id/nav_history"
android:name="net.taler.merchantpos.history.MerchantHistoryFragment"
android:label="@string/history_label"
- tools:layout="@layout/fragment_merchant_history" />
+ tools:layout="@layout/fragment_merchant_history">
+ <action
+ android:id="@+id/action_nav_history_to_refundFragment"
+ app:destination="@id/refundFragment" />
+ </fragment>
+
+ <fragment
+ android:id="@+id/refundFragment"
+ android:name="net.taler.merchantpos.history.RefundFragment"
+ android:label="@string/history_refund"
+ tools:layout="@layout/fragment_refund">
+ <action
+ android:id="@+id/action_refundFragment_to_refundUriFragment"
+ app:destination="@id/refundUriFragment" />
+ </fragment>
+
+ <fragment
+ android:id="@+id/refundUriFragment"
+ android:name="net.taler.merchantpos.history.RefundUriFragment"
+ android:label="@string/history_refund"
+ tools:layout="@layout/fragment_refund_uri" />
<fragment
android:id="@+id/nav_settings"