UI change
This commit is contained in:
@@ -103,7 +103,6 @@
|
|||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
}
|
|
||||||
}
|
}
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
@@ -535,13 +534,6 @@
|
|||||||
<InputText class="input-shell" @bind-Value="effect.BodyPart" />
|
<InputText class="input-shell" @bind-Value="effect.BodyPart" />
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
@if (ShouldShowTargetField(effect))
|
|
||||||
{
|
|
||||||
<div class="field-shell critical-editor-effect-extra">
|
|
||||||
<label>Target</label>
|
|
||||||
<InputText class="input-shell" @bind-Value="effect.Target" />
|
|
||||||
</div>
|
|
||||||
}
|
|
||||||
</div>
|
</div>
|
||||||
<button type="button" class="critical-editor-inline-button" @onclick="onRemove">Remove</button>
|
<button type="button" class="critical-editor-inline-button" @onclick="onRemove">Remove</button>
|
||||||
</div>;
|
</div>;
|
||||||
@@ -578,8 +570,4 @@
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
</div>;
|
</div>;
|
||||||
|
|
||||||
private static bool ShouldShowTargetField(CriticalEffectEditorModel effect) =>
|
|
||||||
!string.Equals(effect.EffectCode, CriticalEffectCodes.DirectHits, StringComparison.Ordinal) &&
|
|
||||||
!string.IsNullOrWhiteSpace(effect.Target);
|
|
||||||
}
|
}
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user