10
11
12
13
14
15
16
17
18
|
# File 'lib/matestack/ui/bootstrap/form/submit.rb', line 10
def response
bs_btn type: "submit", size:context.size, class: "#{context.bs_class}", variant: context.button_variant || :primary, "v-if": "!vc.loading" do
plain context.text || "Submit"
end
bs_btn type: "submit", size: context.size, class: "#{context.bs_class} #{context.loading_class}", variant: context.button_variant || :primary, disabled: true, "v-if": "vc.loading" do
bs_spinner variant: context.spinner_variant || :light, size: :sm
plain context.loading_text || "Loading..."
end
end
|