Skip to content

Commit

Permalink
feat: Add direct navigation to construction site
Browse files Browse the repository at this point in the history
  • Loading branch information
famoser committed Nov 13, 2024
1 parent c75af9a commit 492ede2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions assets/js/vue/components/SwitchTasks.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
<p class="mb-1">
<strong>
{{ constructionSites.find(site => site['@id'] === constructionSiteId).name }}
<a :href="constructionSiteId.replace('/api', '') + '/dashboard'" class="ms-1">
<font-awesome-icon :icon="['fas', 'chevron-right']" />
</a>
</strong>
</p>
<div class="row g-1">
Expand Down
6 changes: 4 additions & 2 deletions assets/js/vue/vuejs.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ import {
faFilter as faFilterSolid,
faSearch as faSearchSolid,
faSortUp as faSortUpSolid,
faSortDown as faSortDownSolid // table
faSortDown as faSortDownSolid, // table
faChevronRight as faChevronRightSolid
} from '@fortawesome/pro-solid-svg-icons'
import '@fortawesome/fontawesome-svg-core/styles.css'
import Flatpickr from 'flatpickr'
Expand Down Expand Up @@ -72,7 +73,8 @@ FontawesomeLibrary.add(
faPlusCircleRegular, faDotCircleRegular, faExclamationCircleRegular, faCheckCircleRegular,
faCircleRegular, faCircleUserRegular, faCircleORegular, faCircleEnvelopeRegular, faCircleCameraRegular, faCircleDownRegular, faDownRegular, faListUlRegular,
faStarSolid, faUserCheckSolid,
faFilterSolid, faSearchSolid, faSortUpSolid, faSortDownSolid
faFilterSolid, faSearchSolid, faSortUpSolid, faSortDownSolid,
faChevronRightSolid
)

// configure moment
Expand Down

0 comments on commit 492ede2

Please sign in to comment.