Skip to content

Commit

Permalink
Fix #300 - Remove Action buttons from IoT Edge Configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
kbeaugrand committed Feb 25, 2022
1 parent 3dd00e0 commit 4852ce3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<MudContainer MaxWidth="MaxWidth.False">
<MudGrid>
<MudItem xs="12">
<EditForm Model="@Config" OnValidSubmit="SaveConfig">
<EditForm Model="@Config">
<MudCard>
<MudCardHeader>
<CardHeaderContent>
Expand Down Expand Up @@ -76,10 +76,6 @@
}
</MudCardContent>
</MudCard>
<MudCardActions>
<MudFab ButtonType="ButtonType.Submit" Color="Color.Secondary" Icon="@Icons.Material.Filled.Save" Label="Save" Disabled="@(!success)" Class="ml-auto" />
<MudFab Color="Color.Dark" Icon="@Icons.Material.Filled.Delete" Label="Delete" OnClick="DeleteConfig" />
</MudCardActions>
</EditForm>
</MudItem>
</MudGrid>
Expand Down Expand Up @@ -121,8 +117,6 @@

private ConfigListItem Config { get; set; } = new ConfigListItem();

private bool success = true;

public string ConditionEnv { get; set; }
public string ConditionType { get; set; }
public string ConditionOwner { get; set; }
Expand Down Expand Up @@ -162,16 +156,6 @@
}
}

public async void SaveConfig()
{
await Task.Delay(0); // TODO?
}

private async Task DeleteConfig()
{
await Task.Delay(0); // TODO?
}

/// <summary>
/// Prompts a pop-up windows to show modules details (environment variables and identity twin settings)
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
<MudTh Style="text-align: center">Priority</MudTh>
<MudTh Style="text-align: center">Creation date</MudTh>
<MudTh Style="text-align: center">Detail</MudTh>
<MudTh Style="text-align: center">Delete</MudTh>
</HeaderContent>
<RowTemplate>
<MudTd DataLabel="ID" Style="word-break: break-all;">
Expand All @@ -63,9 +62,6 @@
<MudTd DataLabel="Details" Style="text-align: center">
<a href="/edge/configurations/@context.ConfigurationID"><MudIconButton Icon="@Icons.Filled.Visibility" Color="Color.Default" /></a>
</MudTd>
<MudTd DataLabel="Delete" Style="text-align: center">
<MudIconButton Color="Color.Default" Icon="@Icons.Material.Filled.Delete" Size="Size.Medium" OnClick="@(e => DeleteConfiguration(context))"></MudIconButton>
</MudTd>
</RowTemplate>
<PagerContent>
<MudTablePager PageSizeOptions="@pageSizeOptions"></MudTablePager>
Expand Down Expand Up @@ -100,9 +96,4 @@
exception.Redirect();
}
}

private async Task DeleteConfiguration(ConfigListItem config)
{
await Task.Delay(0); //TODO?
}
}

0 comments on commit 4852ce3

Please sign in to comment.