-
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 (#879)
* feat: show end of life message to users starting April * chore: make it prettier
- Loading branch information
1 parent
6780f6f
commit 16e9661
Showing
3 changed files
with
72 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,44 @@ | ||
<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> | ||
<p>Use these contract names to find the right items to write hours in Bridge:</p> | ||
|
||
<b-table class="mb-4" striped :items="contracts" :fields="fields"></b-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)); | ||
return { | ||
fields: [{ key: 'name', label: 'Contract' }, { key: 'project_name', label: 'Project' }], | ||
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