Skip to content

Commit

Permalink
[BUG] ShadowDisplay presenter in Bypass Exclude not working properly (#…
Browse files Browse the repository at this point in the history
…632)

* Create draft PR for #631

* * fix display shadow presentation in  inspectors
+ localization  in inspection dialog buttons

---------

Co-authored-by: peterbarancek <peterbarancek@users.noreply.github.com>
Co-authored-by: Peter Barancek <peter.barancek@mts.sk>
  • Loading branch information
3 people authored Sep 4, 2023
1 parent a11d7ab commit 7472520
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 32 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@
<Setter Property="Margin" Value="10" />
</Style>
</WrapPanel.Resources>
<Button Command="{Binding RetryCommand, Mode=OneWay}" Content="Retry" />
<Button Command="{Binding TerminateCommand, Mode=OneWay}" Content="Terminate" />
<Button Command="{Binding RetryCommand, Mode=OneWay}" Content="{x:Static s:strings.Retry}" />
<Button Command="{Binding TerminateCommand, Mode=OneWay}" Content="{x:Static s:strings.Terminate}" />
<vortexs:PermissionBox Permissions="can_override_inspection">
<Button Command="{Binding OverrideCommand, Mode=OneWay}" Content="Override" />
<Button Command="{Binding OverrideCommand, Mode=OneWay}" Content="{x:Static s:strings.Override}" />
</vortexs:PermissionBox>
</WrapPanel>
<Expander
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,18 +136,18 @@
<value>Vylúčené</value>
</data>
<data name="InspectionWasBypassed" xml:space="preserve">
<value>Obchádzka</value>
<value>Preskočiť</value>
</data>
<data name="InspectionFailedYouWillNeedToDecideWhatSNext" xml:space="preserve">
<value>Kontrola zlyhala, budete sa musieť rozhodnúť, čo ďalej...</value>
</data>
<data name="Retry" xml:space="preserve">
<value>Opakovanie</value>
<value>Opakovať</value>
</data>
<data name="Terminate" xml:space="preserve">
<value>Ukončiť</value>
</data>
<data name="Override" xml:space="preserve">
<value>Override</value>
<value>Nahradiť</value>
</data>
</root>
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,8 @@
<controls:RenderableContentControl Margin="10,0" DataContext="{Binding _data.DetectedStatus}" PresentationType="ShadowDisplaySlim"/>
<controls:RenderableContentControl Margin="10,0" DataContext="{Binding _data.RequiredMax}" PresentationType="ShadowDisplaySlim"/>

<controls:RenderableContentControl Margin="10,0"
Grid.Column="4"
DataContext="{Binding _data.IsByPassed}"
PresentationType="DisplaySlim" />
<controls:RenderableContentControl Margin="10,0"
Grid.Column="5"
DataContext="{Binding _data.IsExcluded}"
PresentationType="DisplaySlim" />
<controls:RenderableContentControl Margin="10,0" DataContext="{Binding _data.IsByPassed}" PresentationType="ShadowDisplaySlim" />
<controls:RenderableContentControl Margin="10,0" DataContext="{Binding _data.IsExcluded}" PresentationType="ShadowDisplaySlim" />

<StackPanel Grid.Column="5" Margin="10,0">
<materialDesign:PackIcon HorizontalAlignment="Stretch"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,8 @@
<controls:RenderableContentControl Margin="10,0" DataContext="{Binding _data.RequiredStatus}" PresentationType="ShadowDisplaySlim"/>
<controls:RenderableContentControl Margin="10,0" DataContext="{Binding _data.DetectedStatus}" PresentationType="ShadowDisplaySlim"/>
<controls:RenderableContentControl Margin="10,0" DataContext="{Binding _data.StarNotationEnabled}" PresentationType="ShadowDisplaySlim"/>
<controls:RenderableContentControl Margin="10,0"
Grid.Column="4"
DataContext="{Binding _data.IsByPassed}"
PresentationType="DisplaySlim" />
<controls:RenderableContentControl Margin="10,0"
Grid.Column="5"
DataContext="{Binding _data.IsExcluded}"
PresentationType="DisplaySlim" />
<controls:RenderableContentControl Margin="10,0" DataContext="{Binding _data.IsByPassed}" PresentationType="ShadowDisplaySlim" />
<controls:RenderableContentControl Margin="10,0" DataContext="{Binding _data.IsExcluded}" PresentationType="ShadowDisplaySlim" />
<StackPanel Grid.Column="5" Margin="10,0">
<materialDesign:PackIcon HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,10 @@
<TextBlock Margin="0,0,20,0" Grid.ColumnSpan="2" TextWrapping="WrapWithOverflow" FontWeight="Bold" HorizontalAlignment="Left" VerticalAlignment="Center" Grid.Row="1" Grid.Column="0" Text="{Binding Converter={controls:NameOrSymbolConverter}}"></TextBlock>

<WrapPanel Grid.Column="2">
<controls:RenderableContentControl Grid.Column="1" Margin="10,0" DataContext="{Binding _data.RequiredStatus}" PresentationType="ShadowDisplaySlim"/>
<controls:RenderableContentControl Grid.Column="2" Margin="10,0" DataContext="{Binding _data.DetectedStatus}" PresentationType="ShadowDisplaySlim"/>
<controls:RenderableContentControl Margin="10,0"
Grid.Column="4"
DataContext="{Binding _data.IsByPassed}"
PresentationType="DisplaySlim" />
<controls:RenderableContentControl Margin="10,0"
Grid.Column="5"
DataContext="{Binding _data.IsExcluded}"
PresentationType="DisplaySlim" />
<controls:RenderableContentControl Margin="10,0" DataContext="{Binding _data.RequiredStatus}" PresentationType="ShadowDisplaySlim"/>
<controls:RenderableContentControl Margin="10,0" DataContext="{Binding _data.DetectedStatus}" PresentationType="ShadowDisplaySlim"/>
<controls:RenderableContentControl Margin="10,0" DataContext="{Binding _data.IsByPassed}" PresentationType="ShadowDisplaySlim" />
<controls:RenderableContentControl Margin="10,0" DataContext="{Binding _data.IsExcluded}" PresentationType="ShadowDisplaySlim" />
<StackPanel Grid.Column="5" Margin="10,0">
<materialDesign:PackIcon HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
Expand Down

0 comments on commit 7472520

Please sign in to comment.