summaryrefslogtreecommitdiffstats
path: root/client/components
diff options
context:
space:
mode:
authorMaxime Quandalle <maxime@quandalle.com>2015-08-20 23:48:34 +0200
committerMaxime Quandalle <maxime@quandalle.com>2015-08-20 23:48:34 +0200
commitae4288d5075a98bc141081b3449581ec4f07743f (patch)
tree54a147caa1a88fcd07da0ebd283c84fd67c574f1 /client/components
parent8b3a6a78190f9e03f6ca24315a9c977967355c0c (diff)
downloadwekan-ae4288d5075a98bc141081b3449581ec4f07743f.tar.gz
wekan-ae4288d5075a98bc141081b3449581ec4f07743f.tar.bz2
wekan-ae4288d5075a98bc141081b3449581ec4f07743f.zip
Warn if the user try to restore a card in an archived list
Diffstat (limited to 'client/components')
-rw-r--r--client/components/main/layouts.styl3
-rw-r--r--client/components/sidebar/sidebarArchives.jade2
-rw-r--r--client/components/sidebar/sidebarArchives.js5
3 files changed, 10 insertions, 0 deletions
diff --git a/client/components/main/layouts.styl b/client/components/main/layouts.styl
index a6512574..5199da0f 100644
--- a/client/components/main/layouts.styl
+++ b/client/components/main/layouts.styl
@@ -65,6 +65,9 @@ h3, h4, h5, h6
a
color: #aa8f09
+.small
+ font-size: 0.8em
+
a
color: inherit
cursor: pointer
diff --git a/client/components/sidebar/sidebarArchives.jade b/client/components/sidebar/sidebarArchives.jade
index efd70fd4..6911c286 100644
--- a/client/components/sidebar/sidebarArchives.jade
+++ b/client/components/sidebar/sidebarArchives.jade
@@ -6,5 +6,7 @@ template(name="archivesSidebar")
a.js-restore Restore
| -
a.js-delete Delete
+ if cardIsInArchivedList
+ p.quiet.small (warning: this card is in an archived list) <br>
else
p.no-items-message No archived cards.
diff --git a/client/components/sidebar/sidebarArchives.js b/client/components/sidebar/sidebarArchives.js
index b106f705..d422cb43 100644
--- a/client/components/sidebar/sidebarArchives.js
+++ b/client/components/sidebar/sidebarArchives.js
@@ -2,10 +2,15 @@ BlazeComponent.extendComponent({
template: function() {
return 'archivesSidebar';
},
+
archivedCards: function() {
return Cards.find({archived: true});
},
+ cardIsInArchivedList: function() {
+ return this.currentData().list().archived;
+ },
+
onRendered: function() {
//XXX We should support dragging a card from the sidebar to the board
},