Folder names (#318)

This commit is contained in:
Wyatt Verchere
2023-07-21 20:16:07 -07:00
committed by GitHub
parent 4941260805
commit 3fa33dc241
42 changed files with 1129 additions and 535 deletions

View File

@@ -107,7 +107,7 @@ async function getLiveLog() {
}
async function getLogs() {
return (await get_logs(props.instance.uuid, true).catch(handleError)).reverse().map((log) => {
return (await get_logs(props.instance.path, true).catch(handleError)).reverse().map((log) => {
log.name = dayjs(
log.datetime_string.slice(0, 8) + 'T' + log.datetime_string.slice(9)
).calendar()
@@ -149,7 +149,7 @@ watch(selectedLogIndex, async (newIndex) => {
if (logs.value.length > 1 && newIndex !== 0) {
logs.value[newIndex].stdout = 'Loading...'
logs.value[newIndex].stdout = await get_output_by_datetime(
props.instance.uuid,
props.instance.path,
logs.value[newIndex].datetime_string
).catch(handleError)
}
@@ -164,7 +164,7 @@ const deleteLog = async () => {
let deleteIndex = selectedLogIndex.value
selectedLogIndex.value = deleteIndex - 1
await delete_logs_by_datetime(
props.instance.uuid,
props.instance.path,
logs.value[deleteIndex].datetime_string
).catch(handleError)
await setLogs()