1
0
Fork 0
mirror of https://github.com/nishiki/manage-password.git synced 2024-10-27 02:33:19 +00:00

if delete disable clipboard

This commit is contained in:
nishiki 2016-08-04 22:20:12 +02:00
parent fbc291c177
commit b64514c557

View file

@ -409,7 +409,8 @@ class Cli
# @args: id -> the item's id
# force -> no resquest a validation
def delete(id, force=false)
item = @mpw.search_by_id(id)
@clipboard = false
item = @mpw.search_by_id(id)
if item.nil?
puts I18n.t('form.delete_item.not_valid', id: id)