mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-12-04 12:34:14 +01:00
CW-331-Add-option-to-disable-market-place-in-display-settings (#872)
* CW-331-Add-option-to-disable-market-place-in-display-settings [skip ci] * CW-331-Add-option-to-disable-market-place-in-display-settings [skip ci]
This commit is contained in:
@@ -213,6 +213,11 @@ abstract class DashboardViewModelBase with Store {
|
||||
@computed
|
||||
BalanceDisplayMode get balanceDisplayMode =>
|
||||
appStore.settingsStore.balanceDisplayMode;
|
||||
|
||||
@computed
|
||||
bool get shouldShowMarketPlaceInDashboard {
|
||||
return appStore.settingsStore.shouldShowMarketPlaceInDashboard;
|
||||
}
|
||||
|
||||
@computed
|
||||
List<TradeListItem> get trades => tradesStore.trades
|
||||
|
||||
@@ -28,6 +28,9 @@ abstract class DisplaySettingsViewModelBase with Store {
|
||||
@computed
|
||||
bool get shouldDisplayBalance => balanceDisplayMode == BalanceDisplayMode.displayableBalance;
|
||||
|
||||
@computed
|
||||
bool get shouldShowMarketPlaceInDashboard => _settingsStore.shouldShowMarketPlaceInDashboard;
|
||||
|
||||
@computed
|
||||
ThemeBase get theme => _settingsStore.currentTheme;
|
||||
|
||||
@@ -58,4 +61,9 @@ abstract class DisplaySettingsViewModelBase with Store {
|
||||
|
||||
@action
|
||||
void setFiatCurrency(FiatCurrency value) => _settingsStore.fiatCurrency = value;
|
||||
|
||||
@action
|
||||
void setShouldShowMarketPlaceInDashbaord(bool value) {
|
||||
_settingsStore.shouldShowMarketPlaceInDashboard = value;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user