fix: alt texts shouldn't be interpreted as MFM
This commit is contained in:
parent
b4cdc463a0
commit
04369c9da9
@ -54,7 +54,8 @@
|
|||||||
<Mfm :text="i18n.ts.password" />
|
<Mfm :text="i18n.ts.password" />
|
||||||
</header>
|
</header>
|
||||||
<div v-if="text" :class="$style.text">
|
<div v-if="text" :class="$style.text">
|
||||||
<Mfm :text="text" />
|
<span v-if="isPlaintext === true">{{ text }}</span>
|
||||||
|
<Mfm v-else :text="text" />
|
||||||
</div>
|
</div>
|
||||||
<MkInput
|
<MkInput
|
||||||
v-if="input && input.type !== 'paragraph'"
|
v-if="input && input.type !== 'paragraph'"
|
||||||
@ -245,6 +246,7 @@ const props = withDefaults(
|
|||||||
| "search";
|
| "search";
|
||||||
title: string;
|
title: string;
|
||||||
text?: string;
|
text?: string;
|
||||||
|
isPlaintext?: boolean;
|
||||||
input?: Input;
|
input?: Input;
|
||||||
select?: Select;
|
select?: Select;
|
||||||
icon?: string;
|
icon?: string;
|
||||||
@ -268,6 +270,7 @@ const props = withDefaults(
|
|||||||
isYesNo: false,
|
isYesNo: false,
|
||||||
|
|
||||||
cancelableByBgClick: true,
|
cancelableByBgClick: true,
|
||||||
|
isPlaintext: false,
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -138,6 +138,7 @@ function captionPopup() {
|
|||||||
os.alert({
|
os.alert({
|
||||||
type: "info",
|
type: "info",
|
||||||
text: props.media.comment,
|
text: props.media.comment,
|
||||||
|
isPlaintext: true,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -277,6 +277,7 @@ export function alert(props: {
|
|||||||
type?: "error" | "info" | "success" | "warning" | "waiting" | "question";
|
type?: "error" | "info" | "success" | "warning" | "waiting" | "question";
|
||||||
title?: string | null;
|
title?: string | null;
|
||||||
text?: string | null;
|
text?: string | null;
|
||||||
|
isPlaintext?: boolean;
|
||||||
}): Promise<void> {
|
}): Promise<void> {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
if (props.text == null && props.type === "error") {
|
if (props.text == null && props.type === "error") {
|
||||||
@ -301,6 +302,7 @@ export function confirm(props: {
|
|||||||
text?: string | null;
|
text?: string | null;
|
||||||
okText?: string;
|
okText?: string;
|
||||||
cancelText?: string;
|
cancelText?: string;
|
||||||
|
isPlaintext?: boolean;
|
||||||
}): Promise<{ canceled: boolean }> {
|
}): Promise<{ canceled: boolean }> {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
popup(
|
popup(
|
||||||
@ -323,6 +325,7 @@ export function yesno(props: {
|
|||||||
type: "error" | "info" | "success" | "warning" | "waiting" | "question";
|
type: "error" | "info" | "success" | "warning" | "waiting" | "question";
|
||||||
title?: string | null;
|
title?: string | null;
|
||||||
text?: string | null;
|
text?: string | null;
|
||||||
|
isPlaintext?: boolean;
|
||||||
}): Promise<{ canceled: boolean }> {
|
}): Promise<{ canceled: boolean }> {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
popup(
|
popup(
|
||||||
|
Loading…
Reference in New Issue
Block a user