Loggest thine Stuff
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.

26 lines
954 B

  1. <script lang="ts">
  2. import { goto } from "$app/navigation";
  3. import type Sprint from "$lib/models/sprint";
  4. import Option from "../layout/Option.svelte";
  5. import OptionsRow from "../layout/OptionsRow.svelte";
  6. import SprintBody from "./SprintBody.svelte";
  7. import { projectPrettyId, scopePrettyId } from "$lib/utils/prettyIds";
  8. import { getScopeContext } from "../contexts/ScopeContext.svelte";
  9. import Section from "../layout/Section.svelte";
  10. export let sprint: Sprint;
  11. const {scope} = getScopeContext();
  12. function gotoSprint() {
  13. goto(`/${scopePrettyId($scope)}/sprints#${projectPrettyId(sprint)}`)
  14. }
  15. </script>
  16. <Section noProgress title={sprint.name}>
  17. <OptionsRow slot="right">
  18. <Option on:click={gotoSprint}>View</Option>
  19. <Option open={{name: "sprint.edit", sprint}}>Edit</Option>
  20. <Option open={{name: "sprint.delete", sprint}} color="red">Delete</Option>
  21. </OptionsRow>
  22. <SprintBody sprint={sprint} />
  23. </Section>