Skip to content

Commit

Permalink
refactor: allowEmpty: falseを使用していた箇所をminLength: 1に置き換え
Browse files Browse the repository at this point in the history
  • Loading branch information
hideki0403 committed Jan 9, 2024
1 parent 3957631 commit cfdfed2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/frontend/src/components/MkPostFormAttaches.vue
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ async function rename(file) {
const { canceled, result } = await os.inputText({
title: i18n.ts.enterFileName,
default: file.name,
allowEmpty: false,
minLength: 1,
});
if (canceled) return;
misskeyApi('drive/files/update', {
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/pages/admin/files.vue
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ function show(file) {
async function find() {
const { canceled, result: q } = await os.inputText({
title: i18n.ts.fileIdOrUrl,
allowEmpty: false,
minLength: 1,
});
if (canceled) return;

Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/pages/theme-editor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ function applyThemeCode() {
async function saveAs() {
const { canceled, result: name } = await os.inputText({
title: i18n.ts.name,
allowEmpty: false,
minLength: 1,
});
if (canceled) return;

Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/ui/deck.vue
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ function changeProfile(ev: MouseEvent) {
action: async () => {
const { canceled, result: name } = await os.inputText({
title: i18n.ts._deck.profile,
allowEmpty: false,
minLength: 1,
});
if (canceled) return;

Expand Down

0 comments on commit cfdfed2

Please sign in to comment.