app/views/shared/vue/_setting.html.erb in fluentd-ui-1.0.1 vs app/views/shared/vue/_setting.html.erb in fluentd-ui-1.1.0
- old
+ new
@@ -4,15 +4,15 @@
<div class="card card-primary mb-3">
<div class="card-header" data-toggle="collapse" v-bind:href="'#'+id" v-bind:title="content">
<i class="fa fa-caret-down"></i>
{{ type }}
- <span v-if="name == 'match'">({{ arg }})</span>
+ <span v-if="!_.isEmpty(arg) && (name == 'match' || name == 'filter')">({{ arg }})</span>
</div>
<div class="card-body collapse" v-bind:id="id">
<pre v-if="mode != 'edit'">{{ content }}</pre>
<p v-if="mode == 'edit'">
- <textarea v-config-editor class="form-control" v-model="content" v-bind:disabled="processing"></textarea>
+ <textarea v-config-editor class="form-control" v-model.lazy="content" v-bind:disabled="processing"></textarea>
</p>
<p class="float-right">
<button v-if="mode != 'edit'" class="btn btn-secondary" v-on:click="onEdit"><%= t('terms.edit') %></button>
<button v-if="mode != 'edit'" class="btn btn-danger" v-on:click="onDelete"><%= t('terms.destroy') %></button>
<button v-if="mode == 'edit'" class="btn btn-secondary" v-on:click="onCancel"><%= t('terms.cancel') %></button>