47 lines
1.4 KiB
Vue
47 lines
1.4 KiB
Vue
<template>
|
|
<nav class="navbar navbar-expand-lg bg-dark">
|
|
<div class="container-fluid">
|
|
<a class="navbar-brand" href="/"><template v-if="user">{{user[2]}}</template><template v-else>nuVistA</template></a>
|
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
|
|
<span class="navbar-toggler-icon"></span>
|
|
</button>
|
|
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
|
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
|
|
<li class="nav-item">
|
|
<a class="nav-link" href="/">Schedule</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link" href="/patient">Patient</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link" href="/recall">Recall</a>
|
|
</li>
|
|
<li class="nav-item" v-if="user">
|
|
<a class="nav-link disabled">{{user[3]}}</a>
|
|
</li>
|
|
</ul>
|
|
<form class="d-flex" role="search">
|
|
<input class="form-control me-2" type="search" placeholder="Search" aria-label="Search">
|
|
<button class="btn btn-outline-success" type="submit">Search</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
</template>
|
|
|
|
<script>
|
|
import vistax from './vistax.mjs';
|
|
|
|
export default {
|
|
props: {
|
|
user: {
|
|
type: Array,
|
|
default: null
|
|
}
|
|
},
|
|
data() {
|
|
return {};
|
|
}
|
|
};
|
|
</script>
|