rename prop: image -> file

This commit is contained in:
Johann150 2022-09-03 23:56:41 +02:00
parent 5e320e49ab
commit 525c8391a6
Signed by untrusted user: Johann150
GPG key ID: 9EE6577A2A06F8F1
3 changed files with 8 additions and 8 deletions

View file

@ -141,7 +141,7 @@ function describe(): void {
placeholder: i18n.ts.inputNewDescription,
default: props.file.comment ?? '',
},
image: props.file,
file: props.file,
}, {
done: result => {
if (!result || result.canceled) return;

View file

@ -15,12 +15,12 @@
</div>
</div>
<div class="hdrwpsaf fullwidth">
<header>{{ image.name }}</header>
<img :src="image.url" :alt="image.comment" :title="image.comment" @click="modal.close()"/>
<header>{{ file.name }}</header>
<img :src="file.url" @click="modal.close()"/>
<footer>
<span>{{ image.type }}</span>
<span>{{ bytes(image.size) }}</span>
<span v-if="image.properties && image.properties.width">{{ number(image.properties.width) }}px × {{ number(image.properties.height) }}px</span>
<span>{{ file.type }}</span>
<span>{{ bytes(file.size) }}</span>
<span v-if="file.properties?.width">{{ number(file.properties.width) }}px × {{ number(file.properties.height) }}px</span>
</footer>
</div>
</div>
@ -43,7 +43,7 @@ type Input = {
};
const props = withDefaults(defineProps<{
image: misskey.entities.DriveFile;
file: misskey.entities.DriveFile;
title?: string;
input: Input;
showOkButton: boolean;

View file

@ -84,7 +84,7 @@ async function describe(file: DriveFile): Promise<void> {
placeholder: i18n.ts.inputNewDescription,
default: file.comment ?? '',
},
image: file,
file,
}, {
done: result => {
if (!result || result.canceled) return;