SPARK-432: Support dialog does not require contact info

This commit is contained in:
Michael Harding committed 2018-02-08 15:41:46 -05:00
1 parent 019cbbbdda
commit 87b0232caf
2 files changed
+2 -2

No files matched your search

@@ -26,7 +26,7 @@
<TextBlock Grid.Row="1" Margin="15,3,15,5" TextWrapping="Wrap">Symbols, expirations and additional details.</TextBlock>
<TextBox Grid.Row="2" AcceptsReturn="True" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="15,10"
Text="{Binding user_text, UpdateSourceTrigger=PropertyChanged}" />
<Grid Grid.Row="3" HorizontalAlignment="Stretch">
<Grid Grid.Row="3" HorizontalAlignment="Stretch" ToolTip="Required only if a response is needed">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="auto" />
<ColumnDefinition Width="*" />
@@ -45,7 +45,7 @@ namespace bts.view.controls {
public SupportRequestVM(ErrorReportService svc, ErrorReportImmutable report_base) {
_service = svc;
_base = report_base;
send_command = new DelegateCommand(send_report, _ => !string.IsNullOrWhiteSpace(_text.Value) && !string.IsNullOrWhiteSpace(_contact.Value));
send_command = new DelegateCommand(send_report, _ => !string.IsNullOrWhiteSpace(_text.Value));
_text = backing(nameof(user_text), "");
_text.Changed += (_,__) => send_command.TryRaiseCanExecuteChanged();
_contact = backing(nameof(user_contact), "");