Small fixes

This commit is contained in:
crschnick
2025-10-20 06:02:33 +00:00
parent c1f55e46f2
commit 183476ea02
4 changed files with 6 additions and 6 deletions
@@ -41,7 +41,7 @@ public class StoreCreationComp extends ModalOverlayContentComp {
var built = new OptionsBuilder()
.name(nameKey + "Name")
.description(nameKey + "NameDescription")
.addString(model.getName(), false)
.addString(model.getName())
.nonNull()
.check(val -> Validator.create(val, AppI18n.observable("readOnlyStoreError"), model.getName(), s -> {
var same = s != null
@@ -312,11 +312,7 @@ public class OptionsBuilder {
}
public OptionsBuilder addString(Property<String> prop) {
return addString(prop, false);
}
public OptionsBuilder addString(Property<String> prop, boolean lazy) {
var comp = new TextFieldComp(prop, lazy);
var comp = new TextFieldComp(prop, false);
pushComp(comp);
props.add(prop);
return this;
@@ -44,6 +44,8 @@ public class AbstractHostStoreProvider implements DataStoreProvider {
Property<String> host = new SimpleObjectProperty<>(st.getHost());
return new OptionsBuilder()
.nameAndDescription("abstractHostAddress")
.addString(host)
.bind(
() -> {
return AbstractHostStore.builder()
+2
View File
@@ -1663,5 +1663,7 @@ vncRefSystem=Associated system
vncRefSystemDescription=The connection entry to associate this VNC connection with. Leave empty if there is none
abstractHost.displayName=Abstract host
abstractHost.displayDescription=Create an entry for a host that does not support shell connections
abstractHostAddress=Host address
abstractHostAddressDescription=The address of the host
largeFileWarningTitle=Large file edit
largeFileWarningContent=The file you want to edit is quite large with $SIZE$. Do you really want to open this file in your text editor?