mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-05 18:15:53 +02:00
refactor(client): refactor dialog functions to improve type inference
This commit is contained in:
@@ -73,11 +73,9 @@ export default defineComponent({
|
||||
});
|
||||
},
|
||||
async rename(file) {
|
||||
const { canceled, result } = await os.dialog({
|
||||
const { canceled, result } = await os.inputText({
|
||||
title: this.$ts.enterFileName,
|
||||
input: {
|
||||
default: file.name
|
||||
},
|
||||
default: file.name,
|
||||
allowEmpty: false
|
||||
});
|
||||
if (canceled) return;
|
||||
|
||||
Reference in New Issue
Block a user