* resolve #3023 * fix * fix * better description * widget * fix text * Update post-form.vue * Fix enter-file-name dialog title text * Fix type * On messaging room * Replace moment.js to original one * Fix formatDateTimeString
This commit is contained in:
parent
eb783f827c
commit
5343b005df
10 changed files with 163 additions and 18 deletions
|
@ -35,6 +35,14 @@ export const meta = {
|
|||
}
|
||||
},
|
||||
|
||||
name: {
|
||||
validator: $.optional.nullable.str,
|
||||
default: null as any,
|
||||
desc: {
|
||||
'ja-JP': 'ファイル名(拡張子があるなら含めて)'
|
||||
}
|
||||
},
|
||||
|
||||
isSensitive: {
|
||||
validator: $.optional.either($.bool, $.str),
|
||||
default: false,
|
||||
|
@ -72,7 +80,7 @@ export const meta = {
|
|||
|
||||
export default define(meta, async (ps, user, app, file, cleanup) => {
|
||||
// Get 'name' parameter
|
||||
let name = file.originalname;
|
||||
let name = ps.name || file.originalname;
|
||||
if (name !== undefined && name !== null) {
|
||||
name = name.trim();
|
||||
if (name.length === 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue