remove allowEmpty

This commit is contained in:
Norm 2022-08-11 04:07:29 -04:00
parent 21b78274aa
commit 534666f762
2 changed files with 0 additions and 2 deletions

View file

@ -66,7 +66,6 @@ async function rename(file: DriveFile): Promise<void> {
const { canceled, result } = await os.inputText({ const { canceled, result } = await os.inputText({
title: i18n.ts.enterFileName, title: i18n.ts.enterFileName,
default: file.name, default: file.name,
allowEmpty: false,
}); });
if (canceled) return; if (canceled) return;
os.api('drive/files/update', { os.api('drive/files/update', {

View file

@ -239,7 +239,6 @@ export function inputText(props: {
text?: string | null; text?: string | null;
placeholder?: string | null; placeholder?: string | null;
default?: string | null; default?: string | null;
allowEmpty?: boolean;
}): Promise<{ canceled: true; result: undefined; } | { }): Promise<{ canceled: true; result: undefined; } | {
canceled: false; result: string; canceled: false; result: string;
}> { }> {