|
@@ -42,6 +42,8 @@ public class DynamicDashboardGridPresenter : IDynamicDashboardDataPresenter<Dyna
|
|
|
|
|
|
public int PreviewHeight => 300;
|
|
|
|
|
|
+ public bool IsPreview { get; set; }
|
|
|
+
|
|
|
private IDynamicDashboardGridPresenterGrid? Grid;
|
|
|
private readonly ContentControl Content = new();
|
|
|
|
|
@@ -84,6 +86,8 @@ public class DynamicDashboardGridPresenter : IDynamicDashboardDataPresenter<Dyna
|
|
|
|
|
|
private void CustomiseMenu(ContextMenu menu)
|
|
|
{
|
|
|
+ if (!IsPreview) return;
|
|
|
+
|
|
|
if(DataComponent.Queries.Count > 1)
|
|
|
{
|
|
|
var queryItem = menu.AddItem("Select Query", null, null);
|