mirror of
https://github.com/amir20/dozzle.git
synced 2026-01-03 19:45:01 +01:00
Moves search to only container pages
This commit is contained in:
@@ -9,7 +9,6 @@
|
||||
<pane min-size="10">
|
||||
<splitpanes>
|
||||
<pane class="has-min-height router-view">
|
||||
<search></search>
|
||||
<router-view></router-view>
|
||||
</pane>
|
||||
<pane v-for="other in activeContainers" :key="other.id" v-if="!isMobile">
|
||||
@@ -47,7 +46,7 @@ import hotkeys from "hotkeys-js";
|
||||
import LogContainer from "./components/LogContainer";
|
||||
import SideMenu from "./components/SideMenu";
|
||||
import MobileMenu from "./components/MobileMenu";
|
||||
import Search from "./components/Search";
|
||||
|
||||
import PastTime from "./components/PastTime";
|
||||
import Icon from "./components/Icon";
|
||||
import FuzzySearchModal from "./components/FuzzySearchModal";
|
||||
@@ -62,7 +61,6 @@ export default {
|
||||
Splitpanes,
|
||||
PastTime,
|
||||
Pane,
|
||||
Search,
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
|
||||
@@ -47,6 +47,10 @@ export default {
|
||||
this.resetSearch();
|
||||
});
|
||||
},
|
||||
beforeDestroy() {
|
||||
this.updateSearchFilter("");
|
||||
hotkeys.unbind("command+f, ctrl+f, esc");
|
||||
},
|
||||
methods: {
|
||||
...mapActions({
|
||||
updateSearchFilter: "SET_SEARCH",
|
||||
|
||||
@@ -1,10 +1,13 @@
|
||||
<template>
|
||||
<log-container :id="id" show-title :scrollable="activeContainers.length > 0"> </log-container>
|
||||
<div>
|
||||
<search></search>
|
||||
<log-container :id="id" show-title :scrollable="activeContainers.length > 0"> </log-container>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { mapActions, mapGetters, mapState } from "vuex";
|
||||
|
||||
import Search from "../components/Search";
|
||||
import LogContainer from "../components/LogContainer";
|
||||
|
||||
export default {
|
||||
@@ -12,6 +15,7 @@ export default {
|
||||
name: "Container",
|
||||
components: {
|
||||
LogContainer,
|
||||
Search,
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user