-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: show end of life message to users starting April
- Loading branch information
Sander de Jong
committed
Mar 25, 2024
1 parent
6780f6f
commit 2db3fd1
Showing
3 changed files
with
83 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<template> | ||
<div> | ||
<h1>We're moving to time writing in Bridge!</h1> | ||
<p> | ||
The last couple of months the bridge team added multiple features to time writing in Bridge | ||
which makes it suitable for us. | ||
</p> | ||
<p>That's why, starting April, we all will use Bridge for time writing.</p> | ||
|
||
<table class="mb-4"> | ||
<thead> | ||
<tr> | ||
<th>Contract</th> | ||
<th>Project</th> | ||
</tr> | ||
</thead> | ||
<tr v-for="contract in contracts" :key="contract.id"> | ||
<td>{{ contract.name }}</td> | ||
<td>{{ contract.project_name }}</td> | ||
</tr> | ||
</table> | ||
|
||
<b-button | ||
variant="success" | ||
href="https://bridge.hosted-tools.com/worklogs/calendar/grid" | ||
target="_blank" | ||
> | ||
Start writing hours in Bridge | ||
<b-icon icon="box-arrow-up-right" class="ml-1" aria-hidden="true" /> | ||
</b-button> | ||
</div> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import { | ||
computed, | ||
defineComponent, | ||
useStore, | ||
} from "@nuxtjs/composition-api"; | ||
export default defineComponent({ | ||
setup() { | ||
const store = useStore<RootStoreState>(); | ||
const timesheet = computed(() => store.state.timesheets.weeklyTimesheet); | ||
const contracts = computed(() => timesheet.value.projects.map((project) => project.project.contract)); | ||
console.log(contracts.value) | ||
return { | ||
contracts, | ||
}; | ||
}, | ||
}); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters