mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 23:40:13 +01:00
Warn if the user try to restore a card in an archived list
This commit is contained in:
parent
8b3a6a7819
commit
ae4288d507
3 changed files with 10 additions and 0 deletions
|
|
@ -65,6 +65,9 @@ h3, h4, h5, h6
|
||||||
a
|
a
|
||||||
color: #aa8f09
|
color: #aa8f09
|
||||||
|
|
||||||
|
.small
|
||||||
|
font-size: 0.8em
|
||||||
|
|
||||||
a
|
a
|
||||||
color: inherit
|
color: inherit
|
||||||
cursor: pointer
|
cursor: pointer
|
||||||
|
|
|
||||||
|
|
@ -6,5 +6,7 @@ template(name="archivesSidebar")
|
||||||
a.js-restore Restore
|
a.js-restore Restore
|
||||||
| -
|
| -
|
||||||
a.js-delete Delete
|
a.js-delete Delete
|
||||||
|
if cardIsInArchivedList
|
||||||
|
p.quiet.small (warning: this card is in an archived list) <br>
|
||||||
else
|
else
|
||||||
p.no-items-message No archived cards.
|
p.no-items-message No archived cards.
|
||||||
|
|
|
||||||
|
|
@ -2,10 +2,15 @@ BlazeComponent.extendComponent({
|
||||||
template: function() {
|
template: function() {
|
||||||
return 'archivesSidebar';
|
return 'archivesSidebar';
|
||||||
},
|
},
|
||||||
|
|
||||||
archivedCards: function() {
|
archivedCards: function() {
|
||||||
return Cards.find({archived: true});
|
return Cards.find({archived: true});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
cardIsInArchivedList: function() {
|
||||||
|
return this.currentData().list().archived;
|
||||||
|
},
|
||||||
|
|
||||||
onRendered: function() {
|
onRendered: function() {
|
||||||
//XXX We should support dragging a card from the sidebar to the board
|
//XXX We should support dragging a card from the sidebar to the board
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue