refac
This commit is contained in:
1 parent
46c1d6591b
commit
b7934e9182
1 file changed
+2
-1
@@ -84,12 +84,13 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$: args = decode(attributes?.arguments ?? '');
|
|
||||||
export let resultContent: string = '';
|
export let resultContent: string = '';
|
||||||
|
|
||||||
$: result = resultContent || decode(attributes?.result ?? '');
|
$: result = resultContent || decode(attributes?.result ?? '');
|
||||||
$: files = parseJSONString(decode(attributes?.files ?? ''));
|
$: files = parseJSONString(decode(attributes?.files ?? ''));
|
||||||
$: embeds = parseJSONString(decode(attributes?.embeds ?? ''));
|
$: embeds = parseJSONString(decode(attributes?.embeds ?? ''));
|
||||||
|
$: args =
|
||||||
|
open || (Array.isArray(embeds) && embeds.length > 0) ? decode(attributes?.arguments ?? '') : '';
|
||||||
$: isDone = attributes?.done === 'true';
|
$: isDone = attributes?.done === 'true';
|
||||||
$: isExecuting = attributes?.done && attributes?.done !== 'true';
|
$: isExecuting = attributes?.done && attributes?.done !== 'true';
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user