1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-25 20:13:57 +02:00
This commit is contained in:
syuilo
2020-09-05 13:09:34 +09:00
parent 138c9868e8
commit deb3df1536
67 changed files with 229 additions and 229 deletions

View File

@@ -97,7 +97,7 @@ export default defineComponent({
const ext = lio >= 0 ? file.name.slice(lio) : '';
const formatted = `${formatTimeString(new Date(file.lastModified), this.$store.state.settings.pastedFileName).replace(/{{number}}/g, '1')}${ext}`;
const name = this.$store.state.settings.pasteDialog
? await this.$root.showDialog({
? await this.$store.dispatch('showDialog', {
title: this.$t('enterFileName'),
input: {
default: formatted
@@ -109,7 +109,7 @@ export default defineComponent({
}
} else {
if (items[0].kind == 'file') {
this.$root.showDialog({
this.$store.dispatch('showDialog', {
type: 'error',
text: this.$t('onlyOneFileCanBeAttached')
});
@@ -134,7 +134,7 @@ export default defineComponent({
return;
} else if (e.dataTransfer.files.length > 1) {
e.preventDefault();
this.$root.showDialog({
this.$store.dispatch('showDialog', {
type: 'error',
text: this.$t('onlyOneFileCanBeAttached')
});