Skip to content

Commit 10138ca

Browse files
committed
Fixed modal
1 parent 6beda91 commit 10138ca

File tree

2 files changed

+5
-11
lines changed

2 files changed

+5
-11
lines changed

src/DragonFly.Client/Shared/AssetSelector.razor

+3-6
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,11 @@
22

33
<BSModal @ref="Modal" IsFullScreen="true" IsScrollable="true" IsCentered="true" Size="Size.ExtraLarge">
44
<Header>Select asset</Header>
5-
<Content>
6-
@if (Modal.Shown)
7-
{
8-
<AssetList ItemSelected="ItemAdded" ListMode="EntityListMode.Single" />
9-
}
5+
<Content>
6+
<AssetList ItemSelected="ItemAdded" ListMode="EntityListMode.Single" />
107
</Content>
118
<Footer>
12-
<BSButton Color="BSColor.Primary" @onclick="() => Modal.HideAsync()">Ok</BSButton>
9+
<BSButton Color="BSColor.Primary" @onclick="() => context.HideAsync()">Ok</BSButton>
1310
</Footer>
1411
</BSModal>
1512

src/DragonFly.Client/Shared/ContentSelector.razor

+2-5
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,10 @@
33
<BSModal @ref="Modal" IsFullScreen="true" IsScrollable="true" Size="Size.ExtraLarge">
44
<Header>Select asset</Header>
55
<Content>
6-
@if (Modal.Shown)
7-
{
8-
<ContentItemTypeList2 Closed="(a, x) => { if (x == true) ItemAdded((ContentItemTypeList2)a); }" ListMode="EntityListMode.Single"></ContentItemTypeList2>
9-
}
6+
<ContentItemTypeList2 Closed="(a, x) => { if (x == true) ItemAdded((ContentItemTypeList2)a); }" ListMode="EntityListMode.Single"></ContentItemTypeList2>
107
</Content>
118
<Footer>
12-
<BSButton Color="BSColor.Primary" @onclick="() => Modal.HideAsync() ">Ok</BSButton>
9+
<BSButton Color="BSColor.Primary" @onclick="() => context.HideAsync() ">Ok</BSButton>
1310
</Footer>
1411
</BSModal>
1512

0 commit comments

Comments
 (0)