File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
app/src/main/java/to/bitkit/ui/screens/widgets/price Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,10 @@ fun PriceEditScreen(
6666 onClickGraph = { period ->
6767 viewModel.setPeriod(period = period)
6868 },
69- isLoading = isLoading
69+ isLoading = isLoading,
70+ onClickSource = {
71+ viewModel.toggleShowSource()
72+ }
7073 )
7174}
7275
@@ -80,6 +83,7 @@ fun PriceEditContent(
8083 onClickGraph : (GraphPeriod ) -> Unit ,
8184 onClickTradingPair : (TradingPair ) -> Unit ,
8285 onClickPreview : () -> Unit ,
86+ onClickSource : () -> Unit ,
8387 preferences : PricePreferences ,
8488 isLoading : Boolean ,
8589) {
@@ -132,6 +136,14 @@ fun PriceEditContent(
132136 testTagPrefix = priceData.period.name
133137 )
134138 }
139+
140+ PriceEditOptionRow (
141+ label = stringResource(R .string.widgets__widget__source),
142+ value = priceModel.source,
143+ isEnabled = preferences.showSource,
144+ onClick = onClickSource,
145+ testTagPrefix = " source"
146+ )
135147 }
136148
137149 Row (
You can’t perform that action at this time.
0 commit comments