This commit is contained in:
2020-05-29 19:45:29 +00:00
parent b9d6a8acd3
commit 06bbce99f0
3 changed files with 13 additions and 12 deletions

View File

@@ -1,8 +1,7 @@
<template> <template>
<v-row v-if="this.formState.ready"> <v-row v-if="this.formState.ready">
<gz-error :errorBoxMessage="formState.errorBoxMessage"></gz-error> <gz-error :errorBoxMessage="formState.errorBoxMessage"></gz-error>
<v-col cols="12"> <v-col cols="12">
<p class="title">{{ $ay.t("Log") }}</p>
<v-btn @click="getDataFromApi" class="mt-1 mb-n6"> <v-btn @click="getDataFromApi" class="mt-1 mb-n6">
<v-icon>fa-sync</v-icon> <v-icon>fa-sync</v-icon>
@@ -252,7 +251,7 @@ function initForm(vm) {
// Ensures UI translated text is available // Ensures UI translated text is available
// //
function fetchTranslatedText(vm) { function fetchTranslatedText(vm) {
let tKeysRequired = ["OpsTestJob", "Log"]; let tKeysRequired = ["OpsTestJob"];
return window.$gz.translation.fetch(tKeysRequired); return window.$gz.translation.fetch(tKeysRequired);
} }

View File

@@ -1,7 +1,7 @@
<template> <template>
<v-row v-if="this.formState.ready" v-resize="onResize"> <v-row v-if="this.formState.ready" v-resize="onResize">
<gz-error :errorBoxMessage="formState.errorBoxMessage"></gz-error> <gz-error :errorBoxMessage="formState.errorBoxMessage"></gz-error>
<v-col cols="12"> <v-col cols="12" sm="6" lg="4" xl="3">
<v-select <v-select
v-model="selectedLog" v-model="selectedLog"
:items="selectLists.serverLogs" :items="selectLists.serverLogs"
@@ -9,6 +9,8 @@
item-value="logname" item-value="logname"
:label="$ay.t('Log')" :label="$ay.t('Log')"
@input="logSelected" @input="logSelected"
append-outer-icon="fa-sync"
@click:append-outer="getDataFromApi"
> >
</v-select> </v-select>
</v-col> </v-col>
@@ -22,11 +24,11 @@
> >
<pre>{{ log }}</pre> <pre>{{ log }}</pre>
</v-card> </v-card>
<v-card-actions> <!-- <v-card-actions>
<v-btn @click="getDataFromApi"> <v-btn @click="getDataFromApi">
<v-icon>fa-sync</v-icon> <v-icon>fa-sync</v-icon>
</v-btn> </v-btn>
</v-card-actions> </v-card-actions> -->
</v-card> </v-card>
</v-col> </v-col>
</v-row> </v-row>

View File

@@ -1,22 +1,22 @@
<template> <template>
<v-row v-if="this.formState.ready"> <v-row v-if="this.formState.ready">
<gz-error :errorBoxMessage="formState.errorBoxMessage"></gz-error> <gz-error :errorBoxMessage="formState.errorBoxMessage"></gz-error>
<v-col cols="3"> <v-col cols="12" sm="6" lg="4" xl="3">
<v-select <v-select
v-model="selectedTimePeriod" v-model="selectedTimePeriod"
:items="selectLists.dateFilterTokens" :items="selectLists.dateFilterTokens"
item-text="name" item-text="name"
item-value="id" item-value="id"
prepend-icon="fa-filter" append-outer-icon="fa-sync"
@click:append-outer="getDataFromApi"
@input="timePeriodChanged" @input="timePeriodChanged"
></v-select> ></v-select>
<v-btn @click="getDataFromApi"> <!-- <v-btn @click="getDataFromApi">
<v-icon>fa-sync</v-icon> <v-icon>fa-sync</v-icon>
</v-btn> </v-btn> -->
<!-- {{ $vuetify.breakpoint.name }} -->
</v-col> </v-col>
<v-tabs v-model="tab" color="primary" fixed-tabs @change="tabChanged"> <v-tabs v-model="tab" color="primary" grow @change="tabChanged">
<v-tabs-slider></v-tabs-slider> <v-tabs-slider></v-tabs-slider>
<v-tab>routes</v-tab> <v-tab>routes</v-tab>
<v-tab>storage</v-tab> <v-tab>storage</v-tab>