mirror of
https://github.com/plankanban/planka.git
synced 2025-12-17 17:23:25 +03:00
Project managers, board members, auto-update after reconnection, refactoring
This commit is contained in:
@@ -5,7 +5,10 @@
|
||||
* @docs :: https://sailsjs.com/docs/concepts/models-and-orm/models
|
||||
*/
|
||||
|
||||
const BACKGROUND_TYPES = ['gradient', 'image'];
|
||||
const BackgroundTypes = {
|
||||
GRADIENT: 'gradient',
|
||||
IMAGE: 'image',
|
||||
};
|
||||
|
||||
const BACKGROUND_GRADIENTS = [
|
||||
'old-lime',
|
||||
@@ -36,7 +39,7 @@ const BACKGROUND_GRADIENTS = [
|
||||
];
|
||||
|
||||
module.exports = {
|
||||
BACKGROUND_TYPES,
|
||||
BackgroundTypes,
|
||||
BACKGROUND_GRADIENTS,
|
||||
|
||||
attributes: {
|
||||
@@ -66,10 +69,10 @@ module.exports = {
|
||||
// ╠═╣╚═╗╚═╗║ ║║ ║╠═╣ ║ ║║ ║║║║╚═╗
|
||||
// ╩ ╩╚═╝╚═╝╚═╝╚═╝╩╩ ╩ ╩ ╩╚═╝╝╚╝╚═╝
|
||||
|
||||
membershipUsers: {
|
||||
managerUsers: {
|
||||
collection: 'User',
|
||||
via: 'projectId',
|
||||
through: 'ProjectMembership',
|
||||
through: 'ProjectManager',
|
||||
},
|
||||
boards: {
|
||||
collection: 'Board',
|
||||
|
||||
Reference in New Issue
Block a user