mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 19:16:56 +02:00
fix accidentally clearing url fields when you don't have view permission
This commit is contained in:
parent
a142f7de72
commit
79cfa68edf
1 changed files with 5 additions and 0 deletions
|
@ -2365,6 +2365,11 @@ function updateMultiDiffProperties(propertiesMapToUpdate, onlyUpdateEntity) {
|
||||||
|
|
||||||
function createEmitTextPropertyUpdateFunction(property) {
|
function createEmitTextPropertyUpdateFunction(property) {
|
||||||
return function() {
|
return function() {
|
||||||
|
// If we don't have canViewAssetURLs permissions, ignore clearing URLs
|
||||||
|
if (!canViewAssetURLs && property.data.placeholder === "URL" && this.value === "") {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
property.elInput.classList.remove('multi-diff');
|
property.elInput.classList.remove('multi-diff');
|
||||||
updateProperty(property.name, this.value, property.isParticleProperty);
|
updateProperty(property.name, this.value, property.isParticleProperty);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue