Skip to content

Commit 3c5e886

Browse files
authored
Merge pull request #306 from neuroglia-io/fix-select-indicator
Replace select class "form-control" with "form-select"
2 parents 6228d1f + 471dc7e commit 3c5e886

13 files changed

+26
-20
lines changed

src/dashboard/Synapse.Dashboard/Features/Shared/JsonForm/JsonFormProperty.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
<label for="@Name" class="form-label">@displayName@RequiredPropertySuffix</label>
5353
@if(Schema.Enum != null && Schema.Enum.Any())
5454
{
55-
<select name="@Name" title="@Schema.Description" readonly="@Schema.ReadOnly" value="@Value" class="form-control" required="@IsRequired" @onchange="OnInputValueChanged">
55+
<select class="form-select" name="@Name" title="@Schema.Description" readonly="@Schema.ReadOnly" value="@Value" required="@IsRequired" @onchange="OnInputValueChanged">
5656
@foreach (var option in Schema.Enum)
5757
{
5858
<option value="@option">@option</option>

src/dashboard/Synapse.Dashboard/Features/Workflows/WorkflowEditor/ActionEditor.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@
146146
<tr>
147147
<td>Invocation mode</td>
148148
<td>
149-
<select value="@action.Subflow?.InvocationMode" title="Configures the subflow's invocation mode" class="form-control bg-secondary text-white"
149+
<select value="@action.Subflow?.InvocationMode" title="Configures the subflow's invocation mode" class="form-select bg-secondary text-white"
150150
@onchange="async e => await OnPropertyChangedAsync(nameof(action.Subflow.InvocationMode), a => { if(a.Subflow == null) a.Subflow = new(); a.Subflow.InvocationMode = EnumHelper.Parse<InvocationMode>((string)e.Value!); })">
151151
@foreach(var invocationMode in Enum.GetValues<InvocationMode>())
152152
{

src/dashboard/Synapse.Dashboard/Features/Workflows/WorkflowEditor/EventEditor.razor

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
<tr>
2929
<td>Kind</td>
3030
<td>
31-
<select name="@nameof(evt.Kind)" required class="form-control bg-secondary text-white"
32-
@onchange="async e => await OnPropertyChanged(nameof(evt.Kind), ed => { ed.Kind = EnumHelper.Parse<EventKind>((string)e.Value!); })">
31+
<select name="@nameof(evt.Kind)" required class="form-select bg-secondary text-white"
32+
@onchange="async e => await OnPropertyChanged(nameof(evt.Kind), ed => { ed.Kind = EnumHelper.Parse<EventKind>((string)e.Value!); })">
3333
@foreach (EventKind eventKind in Enum.GetValues(typeof(EventKind)))
3434
{
3535
var eventKindStr = @EnumHelper.Stringify(eventKind);

src/dashboard/Synapse.Dashboard/Features/Workflows/WorkflowEditor/EventStateTriggerEditor.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<tr>
2424
<td>Action execution mode</td>
2525
<td>
26-
<select required title="The way actions should be executed when the trigger fires" class="form-control bg-secondary text-white"
26+
<select required title="The way actions should be executed when the trigger fires" class="form-select bg-secondary text-white"
2727
@onchange="async e => await OnChangeAsync(t => t.ActionMode = EnumHelper.Parse<ActionExecutionMode>((string)e.Value!))">
2828
@foreach (var mode in Enum.GetValues<ActionExecutionMode>())
2929
{

src/dashboard/Synapse.Dashboard/Features/Workflows/WorkflowEditor/FunctionEditor.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
<tr>
3434
<td>Type</td>
3535
<td>
36-
<select name="@nameof(function.Type)" required class="form-control bg-secondary text-white"
36+
<select name="@nameof(function.Type)" required class="form-select bg-secondary text-white"
3737
@onchange="async e => await OnPropertyChanged(nameof( function.Type), f => { f.Type = EnumHelper.Parse<FunctionType>((string)e.Value!); f.Operation = null!; })">
3838
@foreach (FunctionType functionType in Enum.GetValues(typeof(FunctionType)))
3939
{

src/dashboard/Synapse.Dashboard/Features/Workflows/WorkflowEditor/GrpcOperationSelector.razor

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
@using Neuroglia.Data.Services
2121
@inject ISchemaRegistry SchemaRegistry
2222

23-
<select required class="form-control"
24-
@onchange="async e => OnServiceChanged((string?)e.Value)">
23+
<select required class="form-select"
24+
@onchange="async e => OnServiceChanged((string?)e.Value)">
2525
@if(string.IsNullOrWhiteSpace(OperationId))
2626
{
2727
<option disabled selected value> -- select a service -- </option>
@@ -47,8 +47,8 @@
4747
}
4848
}
4949
</select>
50-
<select required class="form-control"
51-
@onchange="async e => await OnOperationChangedAsync((string?)e.Value)">
50+
<select required class="form-select"
51+
@onchange="async e => await OnOperationChangedAsync((string?)e.Value)">
5252
@if(string.IsNullOrWhiteSpace(OperationId))
5353
{
5454
<option disabled selected value> -- select an operation -- </option>

src/dashboard/Synapse.Dashboard/Features/Workflows/WorkflowEditor/ODataEntitySetSelector.razor

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
@using Neuroglia.Data.Services
2121
@inject ISchemaRegistry SchemaRegistry
2222

23-
<select required class="form-control"
24-
@onchange="async e => await OnOperationChangedAsync((string?)e.Value)">
23+
<select required class="form-select"
24+
@onchange="async e => await OnOperationChangedAsync((string?)e.Value)">
2525
@if(string.IsNullOrWhiteSpace(OperationId))
2626
{
2727
<option disabled selected value> -- select an entity set -- </option>

src/dashboard/Synapse.Dashboard/Features/Workflows/WorkflowEditor/OpenApiOperationSelector.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
@using Neuroglia.Data.Services
2121
@inject ISchemaRegistry SchemaRegistry
2222

23-
<select required class="form-control"
23+
<select required class="form-select"
2424
@onchange="async e => await OnOperationChangedAsync((string?)e.Value)">
2525
@if(string.IsNullOrWhiteSpace(OperationId))
2626
{

src/dashboard/Synapse.Dashboard/Features/Workflows/WorkflowEditor/StateEditors/ForEachStateEditor.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
<tr>
6262
<td>Action execution mode</td>
6363
<td>
64-
<select required title="The way actions should be executed when the trigger fires" class="form-control bg-secondary text-white"
64+
<select required title="The way actions should be executed when the trigger fires" class="form-select bg-secondary text-white"
6565
@onchange="async e => await OnChangedAsync(s => s.Mode = EnumHelper.Parse<ActionExecutionMode>((string)e.Value!))">
6666
@foreach (var mode in Enum.GetValues<ActionExecutionMode>())
6767
{

src/dashboard/Synapse.Dashboard/Features/Workflows/WorkflowEditor/StateEditors/OperationStateEditor.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<tr>
2424
<td>Execution mode</td>
2525
<td>
26-
<select required title="The mode in which the state's operations are to be executed" class="form-control bg-secondary text-white"
26+
<select required title="The mode in which the state's operations are to be executed" class="form-select bg-secondary text-white"
2727
@onchange="async e => await OnChangedAsync(s => s.ActionMode = EnumHelper.Parse<ActionExecutionMode>((string)e.Value!))">
2828
@foreach(var mode in Enum.GetValues<ActionExecutionMode>())
2929
{

0 commit comments

Comments
 (0)