mirror of
https://github.com/pezkuwichain/pezkuwi-wallet-android.git
synced 2026-12-01 23:07:09 +00:00
feat: add Start Tracking button for StakingScore on dashboard
Query StakingScore::StakingStartBlock from People Chain to check tracking status. Show "Start Tracking" button for approved citizens who haven't opted in yet. Submits start_score_tracking() extrinsic with loading state and error handling to prevent duplicate calls.
This commit is contained in:
1 parent
6939dfd4c3
commit
91f2b5d254
10 files changed
+114
-9
No files matched your search
@@ -69,6 +69,22 @@
|
||||
android:textColor="#FFD54F"
|
||||
android:textSize="16sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/pezkuwiDashboardStartTrackingButton"
|
||||
style="@style/Widget.MaterialComponents.Button"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="32dp"
|
||||
android:layout_marginStart="8dp"
|
||||
android:minWidth="0dp"
|
||||
android:paddingHorizontal="10dp"
|
||||
android:text="@string/pezkuwi_dashboard_start_tracking"
|
||||
android:textAllCaps="false"
|
||||
android:textColor="@android:color/white"
|
||||
android:textSize="11sp"
|
||||
android:visibility="gone"
|
||||
app:backgroundTint="#FF9800"
|
||||
app:cornerRadius="8dp" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
Reference in new issue
Block a user