mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-10-02 18:17:27 +13:00
Add more checks when adding store
This commit is contained in:
parent
84e054978c
commit
b997e7674d
1 changed files with 12 additions and 0 deletions
|
@ -267,6 +267,18 @@ public class GuiDsStoreCreator extends MultiStepComp.Step<CompStructure<?>> {
|
|||
}
|
||||
}
|
||||
|
||||
if (DataStorage.get().getStoreEntryIfPresent(name.getValue()).isPresent()) {
|
||||
messageProp.setValue("Store with name " + name.getValue() + " does already exist");
|
||||
changedSinceError.setValue(false);
|
||||
return false;
|
||||
}
|
||||
|
||||
if (DataStorage.get().getStoreEntryIfPresent(entry.getValue().getStore()).isPresent()) {
|
||||
messageProp.setValue("A store with the same configuration does already exist");
|
||||
changedSinceError.setValue(false);
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!validator.getValue().validate()) {
|
||||
var msg = validator
|
||||
.getValue()
|
||||
|
|
Loading…
Reference in a new issue