image editing by vue app, no server yet

This commit is contained in:
2022-12-29 21:20:23 +02:00
parent 137a768a6d
commit d50d075a98
4 changed files with 133 additions and 30 deletions

View File

@ -27,6 +27,7 @@ module Merged
@sections = Section.where(image_id: params[:id].to_i)
@cards = Card.where(image_id: params[:id].to_i)
@used = ((@cards.length > 0) || (@sections.length > 0))
@image_data = @image.attributes
end
def create