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