Remove unneeded imports/return annotations
Some checks failed
ci/woodpecker/pr/build Pipeline failed
ci/woodpecker/pr/lint-backend Pipeline was successful
ci/woodpecker/pr/test Pipeline failed
ci/woodpecker/pr/lint-client Pipeline failed

This commit is contained in:
Norm 2022-08-10 20:19:33 -04:00
parent 0ce09d6753
commit ed52a39476

View file

@ -15,7 +15,7 @@
</template>
<script lang="ts" setup>
import { defineProps, defineAsyncComponent, defineEmits, computed } from 'vue';
import { defineAsyncComponent, computed } from 'vue';
import { DriveFile } from 'misskey-js/built/entities';
import MkDriveFileThumbnail from './drive-file-thumbnail.vue';
import * as os from '@/os';
@ -105,19 +105,19 @@ function showFileMenu(file: DriveFile, ev: MouseEvent): void {
menu = os.popupMenu([{
text: i18n.ts.renameFile,
icon: 'fas fa-i-cursor',
action: (): void => { rename(file); },
action: () => { rename(file); },
}, {
text: file.isSensitive ? i18n.ts.unmarkAsSensitive : i18n.ts.markAsSensitive,
icon: file.isSensitive ? 'fas fa-eye-slash' : 'fas fa-eye',
action: (): void => { toggleSensitive(file); },
action: () => { toggleSensitive(file); },
}, {
text: i18n.ts.describeFile,
icon: 'fas fa-i-cursor',
action: (): void => { describe(file); },
action: () => { describe(file); },
}, {
text: i18n.ts.attachCancel,
icon: 'fas fa-times-circle',
action: (): void => { detachMedia(file.id); },
action: () => { detachMedia(file.id); },
}], ev.currentTarget ?? ev.target).then(() => menu = null);
}
</script>