From 3d1ec78d4a8b2bd391c828bceeac9e765b69ce74 Mon Sep 17 00:00:00 2001 From: yoshihara Date: Tue, 14 Apr 2015 17:15:21 +0900 Subject: [PATCH 1/2] Apply button style to the dom to refresh current setting source and output --- app/views/fluentd/settings/source_and_output.html.haml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/fluentd/settings/source_and_output.html.haml b/app/views/fluentd/settings/source_and_output.html.haml index 369da7f..69a19c3 100644 --- a/app/views/fluentd/settings/source_and_output.html.haml +++ b/app/views/fluentd/settings/source_and_output.html.haml @@ -33,8 +33,8 @@ #vue-setting.current-settings %h2 = t('.current') - %span{"v-on" => "click: update", "v-if" => "!loading"}= icon('fa-refresh') - %span{"v-if" => "loading"}= icon('fa-spin fa-refresh') + %button.btn.btn-primary{"v-on" => "click: update", "v-if" => "!loading"}= icon('fa-refresh') + %button.btn.btn-primary{"v-if" => "loading"}= icon('fa-spin fa-refresh') .row .col-xs-6.input %h3= t('.in') From 7e42fd074cb52cffb397a23ec9319525b9ddab6e Mon Sep 17 00:00:00 2001 From: yoshihara Date: Tue, 14 Apr 2015 17:45:09 +0900 Subject: [PATCH 2/2] Align refresh button to the right of the page and make small --- app/views/fluentd/settings/source_and_output.html.haml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/views/fluentd/settings/source_and_output.html.haml b/app/views/fluentd/settings/source_and_output.html.haml index 69a19c3..3da76ab 100644 --- a/app/views/fluentd/settings/source_and_output.html.haml +++ b/app/views/fluentd/settings/source_and_output.html.haml @@ -33,8 +33,9 @@ #vue-setting.current-settings %h2 = t('.current') - %button.btn.btn-primary{"v-on" => "click: update", "v-if" => "!loading"}= icon('fa-refresh') - %button.btn.btn-primary{"v-if" => "loading"}= icon('fa-spin fa-refresh') + .pull-right + %button.btn.btn-default.btn-sm{"v-on" => "click: update", "v-if" => "!loading"}= icon('fa-refresh') + %button.btn.btn-default.btn-sm{"v-if" => "loading"}= icon('fa-spin fa-refresh') .row .col-xs-6.input %h3= t('.in')