Skip to content

Commit 92440c0

Browse files
committed
v0.30
1 parent c728f36 commit 92440c0

3 files changed

Lines changed: 9 additions & 33 deletions

File tree

src/components/ConfigDetails.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,7 @@
789789
label="Query-Filter"
790790
key="queryfilter"
791791
name="queryfilter"
792-
v-if="((curConfig.type === 'kibana')||(curConfig.type === 'generic-table')) && (curConfig.queryFilterChecked)"
792+
v-if="((curConfig.type === 'kibana')||(curConfig.type === 'generic-table')) && (curConfig.queryFilterChecked) && (!curConfig.config.useShortUrl)"
793793
>
794794
<el-card>
795795
<div>

src/components/Kibana.vue

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -7,32 +7,7 @@
77

88
<el-row v-if="config.queryBarChecked">
99
<QueryBar @querychanged="queryBarChanged" @downloadasked="downloadAsked" :config="config"></QueryBar>
10-
<!--el-col :span="2" style="text-align:left">
11-
<span class="input-label">{{$t("generic.query")}}:</span>
12-
</el-col>
13-
<el-col :span="20">
14-
<el-input size="mini" :placeholder="this.$t('generic.pleaseinput')" v-model="queryField"></el-input>
15-
</el-col>
16-
<el-col :span="2" v-if="config.downloadChecked" style="text-alight:right">
17-
<el-dropdown @command="handleCommand">
18-
<el-button circle size="mini" type="primary" icon="el-icon-download"></el-button>
19-
<el-dropdown-menu slot="dropdown">
20-
<el-dropdown-item command="csv">
21-
<v-icon class="menuicon" name="file-csv" scale="1" />
22-
&nbsp;&nbsp;{{ $t("generic.downloadascsv") }}
23-
</el-dropdown-item>
24-
<el-dropdown-item command="xlsx">
25-
<v-icon class="menuicon" name="file-excel" scale="1" />
26-
&nbsp;&nbsp;{{ $t("generic.downloadasxls") }}
27-
</el-dropdown-item>
28-
</el-dropdown-menu>
29-
</el-dropdown>
30-
</el-col-->
3110
</el-row>
32-
<!-- <h1
33-
class="kibanatitle"
34-
v-show="config.config.kibanaTitle !=undefined && config.config.kibanaTitle!=''"
35-
>{{config.config.kibanaTitle}}</h1> -->
3611

3712
<div v-if="urlTooLong()">
3813

src/components/appConfigEditor/KibanaEditor.vue

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212

1313
<el-col :span="8">
1414
<el-form-item label="Hidden Query" :label-width="formLabelWidth">
15-
<el-input size="mini" v-model="currentConfig.config.hiddenQuery" autocomplete="off"></el-input>
15+
<el-input :disabled="currentConfig.config.useShortUrl" size="mini" v-model="currentConfig.config.hiddenQuery" autocomplete="off"></el-input>
1616
</el-form-item>
1717
</el-col>
1818

1919
<el-col :span="8">
2020
<el-form-item label="Filter Column" :label-width="formLabelWidth">
21-
<el-input size="mini" v-model="currentConfig.config.filtercolumn" autocomplete="off"></el-input>
21+
<el-input :disabled="currentConfig.config.useShortUrl" size="mini" v-model="currentConfig.config.filtercolumn" autocomplete="off"></el-input>
2222
</el-form-item>
2323
</el-col>
2424
</el-row>
@@ -74,18 +74,18 @@
7474
<el-form>
7575
<el-row>&nbsp;</el-row>
7676

77-
<el-row :gutter="24" style="text-align:left">
77+
<el-row :gutter="24" style="text-align:left" >
7878
<el-col :span="8">
79-
<el-form-item label :label-width="formLabelWidth">
79+
<el-form-item label :label-width="formLabelWidth" >
8080
<el-row>
81-
<el-switch
81+
<el-switch :disabled="currentConfig.config.useShortUrl"
8282
v-model="currentConfig.queryBarChecked"
8383
active-text="Query Bar"
8484
@change="query_bar_changed"
8585
></el-switch>
8686
</el-row>
8787
<el-row>
88-
<el-switch v-model="currentConfig.downloadChecked" active-text="Download"></el-switch>
88+
<el-switch :disabled="currentConfig.config.useShortUrl" v-model="currentConfig.downloadChecked" active-text="Download"></el-switch>
8989
</el-row>
9090
<el-row>
9191

@@ -96,6 +96,7 @@
9696
<el-form-item label :label-width="formLabelWidth">
9797
<el-row>
9898
<el-switch
99+
:disabled="currentConfig.config.useShortUrl"
99100
v-model="currentConfig.queryFilterChecked"
100101
active-text="Query Filter"
101102
@change="query_filter_changed"
@@ -126,7 +127,7 @@
126127
<el-col :span="8">
127128
<el-form-item label :label-width="formLabelWidth">
128129
<el-row>
129-
<el-switch v-model="currentConfig.hideFilter" active-text="Hide Filter"></el-switch>
130+
<el-switch :disabled="currentConfig.config.useShortUrl" v-model="currentConfig.hideFilter" active-text="Hide Filter"></el-switch>
130131
</el-row>
131132
<el-row>
132133
<el-switch

0 commit comments

Comments
 (0)