removing cards

This commit is contained in:
2022-12-02 22:48:55 +02:00
parent 3d61e44e09
commit 6287373dae
3 changed files with 17 additions and 1 deletions

View File

@ -67,6 +67,15 @@ module Merged
! cards.empty?
end
def remove_card(card)
from_index = card.index
@cards.delete_at(from_index)
@content["cards"].delete_at(from_index)
@cards.each_with_index do |card, index|
card.set_index(index)
end
end
def move_up
@page.move_section_up(self)
end