78 lines
2.7 KiB
Plaintext
78 lines
2.7 KiB
Plaintext
|
|
<div class="d-flex justify-content-between mb-2">
|
|
<div>
|
|
|
|
<button class="btn btn-info" @onclick="()=>refreshVoc()">VOCABULARY REFRESH</button>
|
|
|
|
<input @bind-value="@defaultPath" />
|
|
</div>
|
|
@if (vocLemmas2Dict.Count > 0 && vocLemmasTEMP2Dict.Count > 0)
|
|
{
|
|
<div class="text-end">
|
|
<button class="btn btn-sm btn-success" @onclick="()=>saveVoc()">SAVE</button>
|
|
</div>
|
|
}
|
|
</div>
|
|
@if (isLoading)
|
|
{
|
|
<LoadingDataSmall></LoadingDataSmall>
|
|
}
|
|
else
|
|
{
|
|
@if (showList)
|
|
{
|
|
@if (vocLemmas2Dict != null && vocLemmasTEMP2Dict != null)
|
|
{
|
|
<table class="table table-striped table-bordered border-dark">
|
|
<thead>
|
|
<tr>
|
|
<th class="text-end">Old text</th>
|
|
<th>New text</th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
|
|
@foreach (var item in vocLemmasTEMP2Dict)
|
|
{
|
|
<tr>
|
|
|
|
@if (!vocLemmas2Dict.ContainsKey(item.Key))
|
|
{
|
|
<td>
|
|
</td>
|
|
<td class="text-center">
|
|
<div class="form-check">
|
|
<button class="btn @setBtnClass(isReady2Save(item.Key))" @onclick="()=>setConf(item.Key)"></button>
|
|
</div>
|
|
</td>
|
|
<td class="text-start text-success">
|
|
@($"{item.Key} --> {vocLemmasTEMP2Dict[item.Key]}")
|
|
</td>
|
|
}
|
|
else if (item.Value != vocLemmas2Dict[item.Key])
|
|
{
|
|
<td class="col-5 text-end text-danger text-decoration-line-through">
|
|
@($"{item.Key} --> {vocLemmas2Dict[item.Key]}")
|
|
</td>
|
|
<td class="text-center">
|
|
<div class="form-check">
|
|
|
|
<button class="btn @setBtnClass(isReady2Save(item.Key))" @onclick="()=>setConf(item.Key)"></button>
|
|
</div>
|
|
</td>
|
|
<td class="col-5 text-start text-success">
|
|
@($"{item.Key} --> {item.Value}")
|
|
</td>
|
|
}
|
|
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
}
|
|
|
|
}
|
|
}
|
|
|