Added optional tps prefix. Fixes #3
This commit is contained in:
parent
b46475d18b
commit
4509e275b2
@ -36,13 +36,19 @@ onMounted(() => {
|
||||
});
|
||||
|
||||
function setValueFromTPS(reference, param, props) {
|
||||
getTenantProperty(param, props)
|
||||
|
||||
if (param.startsWith('tps:')) {
|
||||
const tpsProperty = param.substring(4, param.length);
|
||||
getTenantProperty(tpsProperty, props)
|
||||
.then((value) => {
|
||||
reference.value = value;
|
||||
})
|
||||
.catch((err) => {
|
||||
errorMessage.value = `${err} for TPS property ${param}`;
|
||||
errorMessage.value = `${err} for TPS property ${tpsProperty}`;
|
||||
});
|
||||
} else {
|
||||
reference.value = param;
|
||||
}
|
||||
}
|
||||
|
||||
function fetchData() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user