updated alignment of tools

This commit is contained in:
Peter Olu 2022-05-04 12:34:34 +01:00
parent 5ae494a554
commit 612ac7cd81
3 changed files with 3 additions and 10 deletions

View File

@ -13,8 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. --> limitations under the License. -->
<template> <template>
<el-select <el-select
ref="customSelector"
:size="size" :size="size"
v-model="selected" v-model="selected"
:placeholder="placeholder" :placeholder="placeholder"
@ -48,7 +47,6 @@ interface Option {
/*global defineProps, defineEmits*/ /*global defineProps, defineEmits*/
const emit = defineEmits(["change", "query"]); const emit = defineEmits(["change", "query"]);
const customSelector = ref<string>(null)
const props = defineProps({ const props = defineProps({
options: { options: {
type: Array as PropType<(Option & { disabled?: boolean })[]>, type: Array as PropType<(Option & { disabled?: boolean })[]>,
@ -86,10 +84,6 @@ function remoteMethod(query: string) {
} }
} }
onMounted(() => {
console.log(customSelector.value)
})
watch( watch(
() => props.value, () => props.value,
(data) => { (data) => {

View File

@ -27,8 +27,7 @@ limitations under the License. -->
v-if="!selectedSelector.length || selectedSelector === '$service'" v-if="!selectedSelector.length || selectedSelector === '$service'"
@click="setSelectedSelector('$service')" @click="setSelectedSelector('$service')"
class="tool-btn" class="tool-btn"
type="secondary" size="small"
size="xs"
> >
<Icon size="sm" iconName="playlist_add" /> <Icon size="sm" iconName="playlist_add" />
</el-button> </el-button>
@ -67,7 +66,6 @@ limitations under the License. -->
style="margin-left: 4px" style="margin-left: 4px"
@click="setSelectedSelector('$endpoint')" @click="setSelectedSelector('$endpoint')"
class="tool-btn" class="tool-btn"
type="secondary"
> >
<Icon size="sm" iconName="view" /> <Icon size="sm" iconName="view" />
</el-button> </el-button>

View File

@ -295,6 +295,7 @@ async function queryTraces() {
} }
} }
function changeField(type: string, opt: any) { function changeField(type: string, opt: any) {
activeFilter
state[type] = opt[0]; state[type] = opt[0];
if (type === "service") { if (type === "service") {
getEndpoints(state.service.id); getEndpoints(state.service.id);