The court may allow damages for the wrongful issuance of a temporary restraining order or preliminary injunction on a motion to dissolve or on a reconventional demand. Attorney's fees for the services rendered in connection with the dissolution of a restraining order or preliminary injunction may be included as an element of damages whether the restraining order or preliminary injunction is dissolved on motion or after trial on the merits.