Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.

import { usePageTitle } from "@probo/hooks";
import { Badge, Button, IconUpload, PageHeader, TabBadge, TabLink, Tabs } from "@probo/ui";
import { useCallback, useRef, useState } from "react";
import { useTranslation } from "react-i18next";
Expand All @@ -42,6 +43,7 @@ export const documentLayoutQuery = graphql`
... on DocumentVersion {
id
status
title
...DocumentTitleFormFragment
...DocumentActionsDropdown_versionFragment
...DocumentDetailsCard_versionFragment
Expand Down Expand Up @@ -86,6 +88,7 @@ export const documentLayoutQuery = graphql`
node {
id
status
title
...DocumentTitleFormFragment
...DocumentActionsDropdown_versionFragment
...DocumentDetailsCard_versionFragment
Expand Down Expand Up @@ -158,6 +161,8 @@ export function DocumentLayout(props: { queryRef: PreloadedQuery<DocumentLayoutQ

const currentTab = location.pathname.split("/").at(-1);

usePageTitle(currentVersion.title);

// For changes on the current version (type, classification, title, content).
// Refreshes layout data but does NOT remount the editor.
const handleDocumentUpdated = useCallback(() => {
Expand Down