mirror of
https://github.com/zadam/trilium.git
synced 2025-10-30 09:56:36 +01:00
removed not unique warning from attributes dialog as it's more common to have multi value
This commit is contained in:
@@ -208,24 +208,6 @@ function AttributesModel() {
|
||||
attribute.valueHasMutated();
|
||||
};
|
||||
|
||||
this.isNotUnique = function(index) {
|
||||
const cur = self.ownedAttributes()[index]();
|
||||
|
||||
if (cur.name.trim() === "") {
|
||||
return false;
|
||||
}
|
||||
|
||||
for (let attributes = self.ownedAttributes(), i = 0; i < attributes.length; i++) {
|
||||
const attribute = attributes[i]();
|
||||
|
||||
if (index !== i && cur.name === attribute.name && cur.type === attribute.type) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
};
|
||||
|
||||
this.isEmptyName = function(index) {
|
||||
const cur = self.ownedAttributes()[index]();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user