Files
mainsail/src/components/console/ConsoleTable.vue
T
Stefan Dej 96f8a68448 feature: linux like console & customize console height (#321)
* feature: add linux/bash like console style

Signed-off-by: Stefan Dej <meteyou@gmail.com>

* bugfix: fix not full console position

Signed-off-by: Stefan Dej <meteyou@gmail.com>

* feature: configable console height on dashboard

Signed-off-by: Stefan Dej <meteyou@gmail.com>

* bugfix: old variable name in MiniconsolePanel.vue

Signed-off-by: Stefan Dej <meteyou@gmail.com>

* bugfix: console array cut on dashboard dont work with shell style

Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-08-06 14:32:11 +02:00

44 lines
1.2 KiB
Vue

<style scoped lang="scss">
</style>
<template>
<div :class="'consoleTable '+(isMini ? 'mini' : '')">
<template v-if="events.length === 0">
<v-row class="pa-0 ma-0">
<v-col class="text-center py-3">{{ $t("Console.Empty")}}</v-col>
</v-row>
</template>
<template v-else>
<console-table-entry
v-for="(event, index) of events"
v-bind:key="index"
class="consoleTableRow"
:event="event"
@command-click="commandClick"
></console-table-entry>
</template>
</div>
</template>
<script lang="ts">
import Component from "vue-class-component";
import Vue from "vue";
import {Prop} from "vue-property-decorator";
import ConsoleTableEntry from "@/components/console/ConsoleTableEntry.vue";
@Component({
components: {ConsoleTableEntry}
})
export default class ConsoleTable extends Vue {
@Prop({ required: true })
readonly events!: any[];
@Prop({ required: false, default: false })
readonly isMini!: boolean;
commandClick(msg: string) {
this.$emit('command-click', msg)
}
}
</script>