Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix WidgetsListPart editor #12939

Merged
merged 1 commit into from
Dec 13, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<div class="widget widget-editor card@(Model.Inline ? " collapsed" : String.Empty)">
<div class="widget-editor-header card-header text-muted py-1 ps-2 pe-1">
@if (Model.CanMove)
@if (Model.CanMove != false)
{
<div class="widget-editor-handle"><i class="fas fa-arrows-alt" aria-hidden="true"></i></div>
}
Expand All @@ -19,7 +19,7 @@
@contentType
<div class="btn-widget-metadata border border-info w-100 my-2">
<div class="btn-group">
@if (Model.CanInsert)
@if (Model.CanInsert != false)
{
<button type="button" title="@T["Insert Widget"]" class="btn btn-primary btn-sm dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<i class="fa fa-plus" aria-hidden="true"></i>
Expand Down Expand Up @@ -48,7 +48,7 @@
</div>

<div class="btn-group btn-group-sm float-sm-end" role="group">
@if (Model.CanDelete)
@if (Model.CanDelete != false)
{
<button type="button" class="btn btn-danger widget-list-delete" data-title="@T["Delete"]" data-message="@T["Are you sure you want to remove this item?"]"><i class="fa fa-trash" aria-hidden="true"></i></button>
}
Expand Down