mirror of
https://github.com/plankanban/planka.git
synced 2025-12-17 17:23:25 +03:00
20
server/api/helpers/lists/make-name.js
Normal file
20
server/api/helpers/lists/make-name.js
Normal file
@@ -0,0 +1,20 @@
|
||||
/*!
|
||||
* Copyright (c) 2024 PLANKA Software GmbH
|
||||
* Licensed under the Fair Use License: https://github.com/plankanban/planka/blob/master/LICENSE.md
|
||||
*/
|
||||
|
||||
// TODO: rename?
|
||||
module.exports = {
|
||||
sync: true,
|
||||
|
||||
inputs: {
|
||||
record: {
|
||||
type: 'ref',
|
||||
required: true,
|
||||
},
|
||||
},
|
||||
|
||||
fn(inputs) {
|
||||
return inputs.record.name || _.upperFirst(inputs.record.type);
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user