hide btc text if value is unknown
MODIFY
WalletWasabi.Fluent/Converters/MoneyConverters.cs
WalletWasabi.Fluent/Converters/MoneyConverters.cs
@@ -17,6 +17,6 @@ namespace WalletWasabi.Fluent.Converters
});
public static readonly IValueConverter MoneyToBrush =
- new FuncValueConverter<Money, ISolidColorBrush>(x => x.ToDecimal(MoneyUnit.BTC) < 0 ? Brushes.IndianRed : Brushes.MediumSeaGreen);
+ new FuncValueConverter<Money?, ISolidColorBrush>(x => x?.ToDecimal(MoneyUnit.BTC) > 0 ? Brushes.MediumSeaGreen : Brushes.IndianRed);
}
}
\ No newline at end of file

MODIFY
WalletWasabi.Fluent/Views/TransactionBroadcasting/BroadcastTransactionView.axaml
WalletWasabi.Fluent/Views/TransactionBroadcasting/BroadcastTransactionView.axaml
<TextBlock Text="Input" Classes="amountTitle"/>
<StackPanel Classes="amountValue">
<TextBlock Text="{Binding TotalInputValue, Converter={x:Static converters:MoneyConverters.MoneyToString}}" />
- <TextBlock Text="BTC" Classes="unit" />
+ <TextBlock Text="BTC" Classes="unit" IsVisible="{Binding !!TotalInputValue}"/>
</StackPanel>
</StackPanel>
<TextBlock Text="Output" Classes="amountTitle" FontWeight="UltraBold"/>
<StackPanel Classes="amountValue">
<TextBlock Text="{Binding TotalOutputValue, Converter={x:Static converters:MoneyConverters.MoneyToString}}" />
- <TextBlock Text="BTC" Classes="unit" />
+ <TextBlock Text="BTC" Classes="unit" IsVisible="{Binding !!TotalOutputValue}"/>
</StackPanel>
</StackPanel>
<TextBlock Text="Fee" Classes="amountTitle"/>
<StackPanel Classes="amountValue">
<TextBlock Text="{Binding NetworkFee, Converter={x:Static converters:MoneyConverters.MoneyToString}}" />
- <TextBlock Text="BTC" Classes="unit" />
+ <TextBlock Text="BTC" Classes="unit" IsVisible="{Binding !!NetworkFee}"/>
</StackPanel>
</StackPanel>
</Grid>

hide btc text if value is unknown