mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 10:04:33 +02:00
[CodeFactor] Apply fixes to commit ba8a8bc
This commit is contained in:
parent
ba8a8bc7b9
commit
2f977e748b
|
@ -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"
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue