mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-14 22:17:30 -07:00
Set postIsExpanded to ref() for reactivity
This commit is contained in:
parent
a0701fada7
commit
116722a231
1 changed files with 5 additions and 5 deletions
|
@ -429,10 +429,10 @@ function readPromo() {
|
||||||
isDeleted.value = true;
|
isDeleted.value = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
let postIsExpanded = false;
|
let postIsExpanded = ref(false);
|
||||||
|
|
||||||
function setPostExpanded(val: boolean) {
|
function setPostExpanded(val: boolean) {
|
||||||
postIsExpanded = val;
|
postIsExpanded.value = val;
|
||||||
}
|
}
|
||||||
|
|
||||||
const accessibleLabel = computed(() => {
|
const accessibleLabel = computed(() => {
|
||||||
|
@ -440,8 +440,8 @@ const accessibleLabel = computed(() => {
|
||||||
if (props.note.renote) {
|
if (props.note.renote) {
|
||||||
label += `${i18n.t("renoted")} ${props.note.renote.user.username}; `;
|
label += `${i18n.t("renoted")} ${props.note.renote.user.username}; `;
|
||||||
if (props.note.renote.cw) {
|
if (props.note.renote.cw) {
|
||||||
label += `content warning: ${props.note.renote.cw}; `;
|
label += `${i18n.t('cw')}: ${props.note.renote.cw}; `;
|
||||||
if (postIsExpanded) {
|
if (postIsExpanded.value) {
|
||||||
label += `${props.note.renote.text}; `;
|
label += `${props.note.renote.text}; `;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -450,7 +450,7 @@ const accessibleLabel = computed(() => {
|
||||||
} else {
|
} else {
|
||||||
if (props.note.cw) {
|
if (props.note.cw) {
|
||||||
label += `${i18n.t("cw")}: ${props.note.cw}; `;
|
label += `${i18n.t("cw")}: ${props.note.cw}; `;
|
||||||
if (postIsExpanded) {
|
if (postIsExpanded.value) {
|
||||||
label += `${props.note.text}; `;
|
label += `${props.note.text}; `;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue