Skip to content

Commit

Permalink
fix #2501 - set default Visibility to Same As Page when adding module…
Browse files Browse the repository at this point in the history
…s to a page
  • Loading branch information
sbwalker committed Nov 23, 2022
1 parent 424950b commit 2bae971
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Oqtane.Client/Themes/Controls/Theme/ControlPanel.razor
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,8 @@
<div class="col text-center">
<label for="visibility" class="control-label">@Localizer["Visibility"]</label>
<select class="form-select" @bind="@Visibility">
<option value="edit" selected>@Localizer["VisibilityEdit"]</option>
<option value="view">@Localizer["VisibilityView"]</option>
<option value="edit">@Localizer["VisibilityEdit"]</option>
</select>
</div>
</div>
Expand Down Expand Up @@ -265,7 +265,7 @@

protected string Title { get; private set; } = "";
protected string ContainerType { get; private set; } = "";
protected string Visibility { get; private set; } = "edit";
protected string Visibility { get; private set; } = "view";
protected string Message { get; private set; } = "";

[Parameter]
Expand Down

0 comments on commit 2bae971

Please sign in to comment.