[CodeFactor] Apply fixes to commit ba8a8bc

This commit is contained in:
codefactor-io 2024-02-08 21:05:57 +00:00
parent ba8a8bc7b9
commit 2f977e748b
No known key found for this signature in database
GPG key ID: B66B2D63282C190F
2 changed files with 9 additions and 25 deletions

View file

@ -8,7 +8,6 @@ import { getBeaconDataByCallsign } from "../js/api.js";
import { ref, computed } from "vue";
const chat = useChatStore(pinia);
function chatSelected(callsign) {
@ -46,24 +45,17 @@ function newChat() {
if (callsign === "") return;
this.newChatCall.value = "";
}
</script>
<template>
<nav class="navbar sticky-top bg-body-tertiary shadow">
<button
class="btn btn-outline-primary w-100"
data-bs-target="#newChatModal"
data-bs-toggle="modal"
>
<i class="bi bi-pencil-square"> Start a new chat</i>
</button>
</nav>
<nav class="navbar sticky-top bg-body-tertiary shadow">
<button
class="btn btn-outline-primary w-100"
data-bs-target="#newChatModal"
data-bs-toggle="modal"
>
<i class="bi bi-pencil-square"> Start a new chat</i>
</button>
</nav>
<div
class="list-group bg-body-tertiary m-0 p-1"

View file

@ -21,13 +21,9 @@ function getDateTime(timestampRaw) {
let day = date.getDate().toString().padStart(2, "0");
return `${year}-${month}-${day}`;
}
</script>
<template>
<div class="tab-content p-3" id="nav-tabContent-chat-messages">
<template
v-for="(details, callsign, key) in chat.callsign_list"
@ -66,10 +62,6 @@ function getDateTime(timestampRaw) {
</div>
</template>
</div>
</template>
<style>