forked from FoundKeyGang/FoundKey
remove allowEmpty
This commit is contained in:
parent
21b78274aa
commit
534666f762
2 changed files with 0 additions and 2 deletions
|
@ -66,7 +66,6 @@ async function rename(file: DriveFile): Promise<void> {
|
|||
const { canceled, result } = await os.inputText({
|
||||
title: i18n.ts.enterFileName,
|
||||
default: file.name,
|
||||
allowEmpty: false,
|
||||
});
|
||||
if (canceled) return;
|
||||
os.api('drive/files/update', {
|
||||
|
|
|
@ -239,7 +239,6 @@ export function inputText(props: {
|
|||
text?: string | null;
|
||||
placeholder?: string | null;
|
||||
default?: string | null;
|
||||
allowEmpty?: boolean;
|
||||
}): Promise<{ canceled: true; result: undefined; } | {
|
||||
canceled: false; result: string;
|
||||
}> {
|
||||
|
|
Loading…
Reference in a new issue