ubicloud/views/components
Enes Cakir be56a9139f Fix arguments for UI components
Some arguments for UI components are optional, so we don't have to
provide all of them when using them. I had added a `defined?(name)`
check to use default values when an argument is not provided.

Jeremy pointed out that it was working by accident. In the code `name =
defined?(name)`, `defined?(name)` always returns `local-variable`
because it’s on the right-hand side of the assignment, while the local
variable is on the left-hand side.

When we remove the `defined?` calls, the remaining code is equivalent to
`||=`.
2024-11-12 10:24:27 +03:00
..
form Fix arguments for UI components 2024-11-12 10:24:27 +03:00
rodauth Fix arguments for UI components 2024-11-12 10:24:27 +03:00
billing_warning.erb Do not allow to create GitHub runner without a valid payment method 2023-09-14 19:29:16 +03:00
breadcrumb.erb Move icons to separate file 2023-08-04 10:35:00 +03:00
button.erb Fix arguments for UI components 2024-11-12 10:24:27 +03:00
copieble_content.erb Fix arguments for UI components 2024-11-12 10:24:27 +03:00
delete_button.erb Fix arguments for UI components 2024-11-12 10:24:27 +03:00
empty_state.erb Fix arguments for UI components 2024-11-12 10:24:27 +03:00
flash_message.erb Add flash-notice/flash-error id attributes 2024-11-07 09:46:09 -08:00
icon.erb Fix arguments for UI components 2024-11-12 10:24:27 +03:00
kv_data_card.erb Add click to reveal component to display sensitive info in UI 2023-11-13 13:54:11 +01:00
page_header.erb Add ParadeDB flavor to the PostgreSQL create page 2024-09-28 14:01:45 +03:00
pg_state_label.erb Fix arguments for UI components 2024-11-12 10:24:27 +03:00
progress_bar.erb Fix arguments for UI components 2024-11-12 10:24:27 +03:00
ps_state_label.erb Fix arguments for UI components 2024-11-12 10:24:27 +03:00
revealable_content.erb Add click to reveal component to display sensitive info in UI 2023-11-13 13:54:11 +01:00
tabbar.erb Extract tabbar to a separate component with small UI fixes 2024-10-01 13:33:05 +03:00
vm_state_label.erb Fix arguments for UI components 2024-11-12 10:24:27 +03:00