You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250
  1. <template>
  2. <!-- eslint-disable max-len -->
  3. <nav class="navbar navbar-default navbar-trans navbar-expand-lg fixed-top">
  4. <div class="container-fluid">
  5. <div class="col-md-2">
  6. <button
  7. class="navbar-toggler collapsed"
  8. type="button"
  9. data-toggle="collapse"
  10. data-target="#navbarDefault"
  11. aria-controls="navbarDefault"
  12. aria-expanded="false"
  13. aria-label="Toggle navigation"
  14. >
  15. <span></span>
  16. <span></span>
  17. <span></span>
  18. </button>
  19. <a class="navbar-brand text-brand" @click="routerGoTo('/')">
  20. <img
  21. class="img-fluid"
  22. src="/img/logos/UVProp.png"
  23. alt="UVProp logo"
  24. style="width:110px;height:60px;"
  25. />
  26. Uni-Vate
  27. <span class="color-b">Properties</span>
  28. </a>
  29. <button
  30. type="button"
  31. class="btn btn-link nav-search navbar-toggle-box-collapse d-md-none"
  32. data-toggle="collapse"
  33. data-target="#navbarTogglerDemo01"
  34. aria-expanded="false"
  35. >
  36. <span class="fa fa-search" aria-hidden="true"></span>
  37. </button>
  38. </div>
  39. <div class="col-md-8">
  40. <div class="navbar-collapse collapse justify-content-center" id="navbarDefault">
  41. <ul class="navbar-nav">
  42. <!-- <li class="nav-item">
  43. <a class="nav-link active" @click="routerGoTo('/')">Home</a>
  44. </li>-->
  45. <li class="nav-item dropdown">
  46. <a
  47. class="nav-link dropdown-toggle"
  48. href="#"
  49. id="navbarDropdown"
  50. role="button"
  51. data-toggle="dropdown"
  52. aria-haspopup="true"
  53. aria-expanded="false"
  54. >Timeshare</a>
  55. <div class="dropdown-menu" aria-labelledby="navbarDropdown">
  56. <a class="dropdown-item cursor-pointer" @click="routerGoTo('/timeshare/buy')">To Buy</a>
  57. <a
  58. class="dropdown-item cursor-pointer"
  59. @click="routerGoTo('/timeshare/sell')"
  60. >To Sell</a>
  61. <a
  62. class="dropdown-item cursor-pointer"
  63. @click="routerGoTo('/timeshare/sell')"
  64. >My Timeshare Weeks</a>
  65. <a class="dropdown-item cursor-pointer" @click="routerGoTo('/timeshare/faq')">FAQ</a>
  66. </div>
  67. </li>
  68. <li class="nav-item dropdown">
  69. <a
  70. class="nav-link dropdown-toggle"
  71. href="#"
  72. id="navbarDropdown"
  73. role="button"
  74. data-toggle="dropdown"
  75. aria-haspopup="true"
  76. aria-expanded="false"
  77. >Properties</a>
  78. <div class="dropdown-menu" aria-labelledby="navbarDropdown">
  79. <a
  80. class="dropdown-item cursor-pointer"
  81. @click="routerGoTo('/property/Commercial/Search')"
  82. >Search Commercial Properties</a>
  83. <a
  84. class="dropdown-item cursor-pointer"
  85. @click="routerGoTo('/property/Commercial/Sale')"
  86. >To Sell Commercial Properties</a>
  87. <a
  88. class="dropdown-item cursor-pointer"
  89. @click="routerGoTo('/property/Commercial/Rental')"
  90. >To Rent Commercial Properties</a>
  91. <hr />
  92. <a
  93. class="dropdown-item cursor-pointer"
  94. @click="routerGoTo('/property/Residential/Search')"
  95. >Search Residential Properties</a>
  96. <a
  97. class="dropdown-item cursor-pointer"
  98. @click="routerGoTo('/property/Residential/Sale')"
  99. >To Sell Residential Properties</a>
  100. <a
  101. class="dropdown-item cursor-pointer"
  102. @click="routerGoTo('/property/Residential/Rental')"
  103. >To Rent Residential Properties</a>
  104. <hr />
  105. <a
  106. class="dropdown-item cursor-pointer"
  107. @click="routerGoTo('/property/list/Commercial/MyListings')"
  108. >My Commercial Properties</a>
  109. <a
  110. class="dropdown-item cursor-pointer"
  111. @click="routerGoTo('/property/list/Residential/MyListings')"
  112. >My Residential Properties</a>
  113. </div>
  114. </li>
  115. <li class="nav-item dropdown">
  116. <a
  117. class="nav-link dropdown-toggle"
  118. href="#"
  119. id="navbarDropdown"
  120. role="button"
  121. data-toggle="dropdown"
  122. aria-haspopup="true"
  123. aria-expanded="false"
  124. >About</a>
  125. <div class="dropdown-menu" aria-labelledby="navbarDropdown">
  126. <a class="dropdown-item cursor-pointer" @click="routerGoTo('/about/us')">About Us</a>
  127. <a
  128. class="dropdown-item cursor-pointer"
  129. @click="routerGoTo('/about/timeshare')"
  130. >About Timeshare</a>
  131. </div>
  132. </li>
  133. <li v-if="showLogout" class="nav-item dropdown">
  134. <a
  135. v-if="showLogout"
  136. class="nav-link dropdown-toggle"
  137. href="#"
  138. id="navbarDropdown"
  139. role="button"
  140. data-toggle="dropdown"
  141. aria-haspopup="true"
  142. aria-expanded="false"
  143. >Admin</a>
  144. <div class="dropdown-menu" aria-labelledby="navbarDropdown">
  145. <a
  146. v-if="showLogout"
  147. class="dropdown-item cursor-pointer"
  148. @click="routerGoTo('/status/list')"
  149. >Status</a>
  150. <a
  151. v-if="showLogout"
  152. class="dropdown-item cursor-pointer"
  153. @click="routerGoTo('/status/timeshareAdmin')"
  154. >Timeshare Week Admin</a>
  155. <a
  156. v-if="showLogout"
  157. class="dropdown-item cursor-pointer"
  158. @click="routerGoTo('/status/tenderWeekAdmin')"
  159. >Tender Week Management</a>
  160. <a
  161. v-if="showLogout"
  162. class="dropdown-item cursor-pointer"
  163. @click="routerGoTo('/unitConfiguration/list')"
  164. >Unit Configuration</a>
  165. <a
  166. v-if="showLogout"
  167. class="dropdown-item cursor-pointer"
  168. @click="routerGoTo('/status/userManagementPage')"
  169. >User Management & Access</a>
  170. <a
  171. v-if="showLogout"
  172. class="dropdown-item cursor-pointer"
  173. @click="routerGoTo('/status/changeLogPage')"
  174. >Changes Logs</a>
  175. <a
  176. v-if="showLogout"
  177. class="dropdown-item cursor-pointer"
  178. @click="routerGoTo('/userDefinedGroups/list')"
  179. >Property User Defined Groups</a>
  180. <a
  181. v-if="showLogout"
  182. class="dropdown-item cursor-pointer"
  183. @click="routerGoTo('/propertyTypes/list')"
  184. >Property Types</a>
  185. </div>
  186. </li>
  187. <li class="nav-item dropdown">
  188. <a
  189. class="nav-link"
  190. @click="routerGoTo('/user/login')"
  191. id="navbarDropdown"
  192. role="button"
  193. data-toggle="dropdown"
  194. aria-haspopup="true"
  195. aria-expanded="false"
  196. >Login</a>
  197. </li>
  198. </ul>
  199. </div>
  200. </div>
  201. <div class="col-md-2" align="right">
  202. <button
  203. type="button"
  204. class="btn btn-b-n navbar-toggle-box-collapse d-none d-md-block"
  205. data-toggle="collapse"
  206. data-target="#navbarTogglerDemo01"
  207. aria-expanded="false"
  208. >
  209. <span class="fa fa-search" aria-hidden="true"></span>
  210. </button>
  211. </div>
  212. </div>
  213. <span v-if="showLogout">
  214. <a @click="logout()">Logout</a>
  215. </span>
  216. <span v-else></span>
  217. </nav>
  218. </template>
  219. <script>
  220. import { mapGetters, mapActions } from 'vuex';
  221. export default {
  222. data() {
  223. return {};
  224. },
  225. computed: {
  226. showLogout() {
  227. return this.$store.state.authentication.status === 'success';
  228. },
  229. Logout() {
  230. return this.$store.state.authentication.methods.logout;
  231. },
  232. },
  233. methods: {
  234. ...mapGetters('authentication', ['isLoggedIn']),
  235. ...mapActions('authentication', ['logout']),
  236. routerGoTo(goTo) {
  237. console.log(goTo);
  238. this.$emit('routerGoTo', goTo);
  239. },
  240. },
  241. };
  242. </script>