Skip to content

Commit cfbe17b

Browse files
committed
Fix dialog not opened and dialog close button
1 parent 4a29f3f commit cfbe17b

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed

LinkDotNet.Blog.Web/Shared/ModalDialog.razor

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
<div class="modal-content">
55
<div class="modal-header">
66
<h5 class="modal-title">@Title</h5>
7-
<button type="button" class="close" data-dismiss="modal" aria-label="Close" @onclick="Close">
8-
<span aria-hidden="true"><i class="fas fa-times"></i></span>
7+
<button type="button" class="btn-close" data-dismiss="modal" aria-label="Close" @onclick="Close">
98
</button>
109
</div>
1110
<div class="modal-body">

LinkDotNet.Blog.Web/Shared/Skills/AddSkillDialog.razor

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,12 @@
1010
<div class="mb-3">
1111
<label for="image">Image Url</label>
1212
<InputText class="form-control" id="image" @bind-Value="model.ImageUrl" rows="4"/>
13-
<small id="image" class="form-text text-muted">If set is used before the skill (optional)</small>
13+
<small id="image" class="form-text text-muted">If set is used before the skill (optional). 24x24 pixel
14+
optimal size</small>
1415
</div>
1516
<div class="mb-3">
16-
<label for="title">Skill name</label>
17-
<InputText class="form-control" id="title" @bind-Value="model.Skill" />
17+
<label for="capability">Capability</label>
18+
<InputText class="form-control" id="capability" @bind-Value="model.Capability" />
1819
</div>
1920
<div class="mb-3">
2021
<label for="tags">Proficiency</label>
@@ -36,5 +37,6 @@
3637
public void Open()
3738
{
3839
Dialog.Open();
40+
StateHasChanged();
3941
}
4042
}

LinkDotNet.Blog.Web/Shared/Skills/AddSkillModel.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,8 @@ public class AddSkillModel
1111

1212
[Required]
1313
public string Proficiency { get; set; }
14+
15+
[Required]
16+
public string Capability { get; set; }
1417
}
1518
}

LinkDotNet.Domain/Skill.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
{
33
public class Skill
44
{
5+
public string Id { get; set; }
6+
57
public string IconUrl { get; set; }
68

79
public string Name { get; set; }

0 commit comments

Comments
 (0)