bugfixes
This commit is contained in:
@@ -1,21 +1,33 @@
|
|||||||
<template>
|
<template>
|
||||||
<SMPage :loading="formLoading" permission="logs/discord">
|
<SMPage permission="logs/discord">
|
||||||
<template #container>
|
<SMMastHead
|
||||||
<h1>Discord Bot Logs</h1>
|
title="Discord"
|
||||||
<SMTabGroup>
|
:back-link="{ name: 'dashboard' }"
|
||||||
<SMTab label="Output">
|
back-title="Back to Dashboard" />
|
||||||
<code v-if="logOutputContent.length > 0">{{
|
<SMContainer class="flex-grow-1">
|
||||||
logOutputContent
|
<SMRow>
|
||||||
}}</code>
|
<SMColumn>
|
||||||
</SMTab>
|
<SMTabGroup>
|
||||||
<SMTab label="Errors">
|
<SMTab label="Output">
|
||||||
<code v-if="logErrorContent.length > 0">{{
|
<code v-if="logOutputContent.length > 0">{{
|
||||||
logErrorContent
|
logOutputContent
|
||||||
}}</code>
|
}}</code>
|
||||||
</SMTab>
|
</SMTab>
|
||||||
</SMTabGroup>
|
<SMTab label="Errors">
|
||||||
<SMButton label="Reload Logs" @click="loadData" />
|
<code v-if="logErrorContent.length > 0">{{
|
||||||
</template>
|
logErrorContent
|
||||||
|
}}</code>
|
||||||
|
</SMTab>
|
||||||
|
</SMTabGroup>
|
||||||
|
</SMColumn>
|
||||||
|
</SMRow>
|
||||||
|
<SMButtonRow>
|
||||||
|
<SMButton
|
||||||
|
type="primary"
|
||||||
|
label="Reload Logs"
|
||||||
|
@click="loadData" />
|
||||||
|
</SMButtonRow>
|
||||||
|
</SMContainer>
|
||||||
</SMPage>
|
</SMPage>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -27,6 +39,8 @@ import SMTabGroup from "../../components/SMTabGroup.vue";
|
|||||||
import { api } from "../../helpers/api";
|
import { api } from "../../helpers/api";
|
||||||
import { LogsDiscordResponse } from "../../helpers/api.types";
|
import { LogsDiscordResponse } from "../../helpers/api.types";
|
||||||
import { useToastStore } from "../../store/ToastStore";
|
import { useToastStore } from "../../store/ToastStore";
|
||||||
|
import SMMastHead from "../../components/SMMastHead.vue";
|
||||||
|
import SMButtonRow from "../../components/SMButtonRow.vue";
|
||||||
|
|
||||||
let formLoading = ref(false);
|
let formLoading = ref(false);
|
||||||
let logOutputContent = ref("");
|
let logOutputContent = ref("");
|
||||||
|
|||||||
Reference in New Issue
Block a user