Merge pull request #636 from DJ2LS/main-cf-autofix

Apply fixes from CodeFactor
This commit is contained in:
DJ2LS 2024-02-08 22:18:41 +01:00 committed by GitHub
commit a6c671e113
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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>