mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-13 13:37:31 -07:00
Fix expand-all-cws button, resolves #43
This commit is contained in:
parent
44b724e311
commit
e1376b1c29
1 changed files with 6 additions and 2 deletions
|
@ -244,8 +244,12 @@ let _showContent = $ref(null);
|
||||||
let showContent = $computed({
|
let showContent = $computed({
|
||||||
set(val) { _showContent = val },
|
set(val) { _showContent = val },
|
||||||
get() {
|
get() {
|
||||||
if (_showContent != null) return _showContent;
|
if (props.forceExpandCw != null) {
|
||||||
return props.forceExpandCw || false;
|
_showContent = props.forceExpandCw;
|
||||||
|
props.forceExpandCw = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
return _showContent || false;
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue