Improved slot fill dialog UI, abandoned column layout in favour of wrapping flex rows

This commit is contained in:
Stefan Zermatten
2021-02-12 00:18:29 +02:00
parent dcb535c84e
commit ae373330ab
4 changed files with 58 additions and 46 deletions

View File

@@ -1,5 +1,6 @@
export default function embedInlineCalculations(string, calculations){
if (!string) return '';
if (!calculations) return string;
let index = 0;
return string.replace(/\{([^{}]*)\}/g, () => {
let comp = calculations && calculations[index++];