mirror of
http://git.whoc.org.uk/git/password-manager.git
synced 2025-10-30 02:47:36 +01:00
Added the option to "restore" and archived card
This commit is contained in:
@@ -38,7 +38,7 @@ Clipperz.PM.UI.Components.Cards.CommandToolbar = React.createClass({
|
||||
getInitialState: function() {
|
||||
return {'showCommandMenu': false };
|
||||
},
|
||||
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
commands: function () {
|
||||
@@ -48,8 +48,8 @@ Clipperz.PM.UI.Components.Cards.CommandToolbar = React.createClass({
|
||||
'broadcastEvent': 'deleteCard'
|
||||
},
|
||||
'archive': {
|
||||
'label': "archive",
|
||||
'broadcastEvent': 'archiveCard'
|
||||
'label': this.props['_isArchived'] ? "restore" : "archive",
|
||||
'broadcastEvent': 'toggleArchiveCard'
|
||||
},
|
||||
// 'share': {
|
||||
// 'label': "share",
|
||||
|
||||
Reference in New Issue
Block a user