JS API: Open \ close dialog on restore transaction