mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 23:40:13 +01:00
Fix activity message for list deletion
This commit is contained in:
parent
1169c0d7dc
commit
23cb98bb82
5 changed files with 17 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -4,3 +4,4 @@
|
||||||
*.sublime-workspace
|
*.sublime-workspace
|
||||||
tmp/
|
tmp/
|
||||||
node_modules/
|
node_modules/
|
||||||
|
.vscode/
|
||||||
|
|
|
||||||
|
|
@ -41,6 +41,9 @@ template(name="boardActivities")
|
||||||
if($eq activityType 'createList')
|
if($eq activityType 'createList')
|
||||||
| {{_ 'activity-added' list.title boardLabel}}.
|
| {{_ 'activity-added' list.title boardLabel}}.
|
||||||
|
|
||||||
|
if($eq activityType 'removeList')
|
||||||
|
| {{_ 'activity-removed' title boardLabel}}.
|
||||||
|
|
||||||
if($eq activityType 'importBoard')
|
if($eq activityType 'importBoard')
|
||||||
| {{{_ 'activity-imported-board' boardLabel sourceLink}}}.
|
| {{{_ 'activity-imported-board' boardLabel sourceLink}}}.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -64,5 +64,6 @@ Template.listActionPopup.events({
|
||||||
const currentList = this;
|
const currentList = this;
|
||||||
evt.preventDefault();
|
evt.preventDefault();
|
||||||
Lists.remove(currentList._id);
|
Lists.remove(currentList._id);
|
||||||
|
Popup.close();
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@
|
||||||
"activity-joined": "a rejoint %s",
|
"activity-joined": "a rejoint %s",
|
||||||
"activity-moved": "a déplacé %s depuis %s vers %s",
|
"activity-moved": "a déplacé %s depuis %s vers %s",
|
||||||
"activity-on": "sur %s",
|
"activity-on": "sur %s",
|
||||||
"activity-removed": "a supprimé %s vers %s",
|
"activity-removed": "a supprimé %s de %s",
|
||||||
"activity-sent": "a envoyé %s vers %s",
|
"activity-sent": "a envoyé %s vers %s",
|
||||||
"activity-unjoined": "a quitté %s",
|
"activity-unjoined": "a quitté %s",
|
||||||
"add": "Ajouter",
|
"add": "Ajouter",
|
||||||
|
|
|
||||||
|
|
@ -105,6 +105,17 @@ if (Meteor.isServer) {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Lists.before.remove((userId, doc) => {
|
||||||
|
Activities.insert({
|
||||||
|
userId,
|
||||||
|
type: 'list',
|
||||||
|
activityType: 'removeList',
|
||||||
|
boardId: doc.boardId,
|
||||||
|
listId: doc._id,
|
||||||
|
title: doc.title
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
Lists.after.update((userId, doc) => {
|
Lists.after.update((userId, doc) => {
|
||||||
if (doc.archived) {
|
if (doc.archived) {
|
||||||
Activities.insert({
|
Activities.insert({
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue