Merge branch 'develop' of https://gitea.vvzvlad.xyz/vvzvlad/gitmost into develop
This commit is contained in:
@@ -102,7 +102,12 @@ export default function PageHeaderMenu({ readOnly }: PageHeaderMenuProps) {
|
||||
|
||||
{!readOnly && <PageEditModeToggle size="xs" />}
|
||||
|
||||
{!workspaceSharingDisabled && <ShareModal readOnly={readOnly ?? false} />}
|
||||
{/* Hide the Share entry point for readers; the toggle inside is inert
|
||||
without edit permission, so gate it like other edit-only actions
|
||||
(issue #133) */}
|
||||
{!readOnly && !workspaceSharingDisabled && (
|
||||
<ShareModal readOnly={false} />
|
||||
)}
|
||||
|
||||
<Tooltip label={t("Comments")} openDelay={250} withArrow>
|
||||
<ActionIcon
|
||||
@@ -286,7 +291,7 @@ function PageActionMenu({ readOnly }: PageActionMenuProps) {
|
||||
leftSection={<IconArrowRight size={16} />}
|
||||
onClick={openMovePageModal}
|
||||
>
|
||||
{t("Move")}
|
||||
{t("Move to space")}
|
||||
</Menu.Item>
|
||||
)}
|
||||
|
||||
|
||||
@@ -148,7 +148,7 @@ export function NodeMenu({ node, canEdit }: NodeMenuProps) {
|
||||
variant="subtle"
|
||||
color="gray"
|
||||
className={classes.actionIcon}
|
||||
aria-label={t("Page menu for {{name}}", { name: node.name || t("untitled") })}
|
||||
aria-label={t("Page menu for {{name}}", { name: node.name || t("Untitled") })}
|
||||
tabIndex={-1}
|
||||
onClick={(e) => {
|
||||
e.preventDefault();
|
||||
@@ -199,7 +199,7 @@ export function NodeMenu({ node, canEdit }: NodeMenuProps) {
|
||||
openExportModal();
|
||||
}}
|
||||
>
|
||||
{t("Export page")}
|
||||
{t("Export")}
|
||||
</Menu.Item>
|
||||
|
||||
{canEdit && (
|
||||
@@ -223,7 +223,7 @@ export function NodeMenu({ node, canEdit }: NodeMenuProps) {
|
||||
openMovePageModal();
|
||||
}}
|
||||
>
|
||||
{t("Move")}
|
||||
{t("Move to space")}
|
||||
</Menu.Item>
|
||||
|
||||
<Menu.Item
|
||||
|
||||
@@ -170,7 +170,7 @@ export function SpaceTreeRow({
|
||||
/>
|
||||
</div>
|
||||
|
||||
<span className={classes.text}>{node.name || t("untitled")}</span>
|
||||
<span className={classes.text}>{node.name || t("Untitled")}</span>
|
||||
|
||||
{node.isTemplate === true && (
|
||||
<Tooltip label={t("Template")} withArrow>
|
||||
@@ -297,7 +297,7 @@ function CreateNode({
|
||||
variant="subtle"
|
||||
color="gray"
|
||||
className={classes.actionIcon}
|
||||
aria-label={t("Create subpage of {{name}}", { name: node.name || t("untitled") })}
|
||||
aria-label={t("Create subpage of {{name}}", { name: node.name || t("Untitled") })}
|
||||
tabIndex={-1}
|
||||
onClick={(e) => {
|
||||
e.preventDefault();
|
||||
|
||||
@@ -282,7 +282,7 @@ const SpaceTree = forwardRef<SpaceTreeApi, SpaceTreeProps>(function SpaceTree(
|
||||
[],
|
||||
);
|
||||
const getDragLabel = useCallback(
|
||||
(n: SpaceTreeNode) => n.name || t("untitled"),
|
||||
(n: SpaceTreeNode) => n.name || t("Untitled"),
|
||||
[t],
|
||||
);
|
||||
|
||||
|
||||
@@ -51,7 +51,7 @@ export function findBreadcrumbPath(
|
||||
): SpaceTreeNode[] | null {
|
||||
for (const node of tree) {
|
||||
if (!node.name || node.name.trim() === "") {
|
||||
node.name = "untitled";
|
||||
node.name = "Untitled";
|
||||
}
|
||||
|
||||
if (node.id === pageId) {
|
||||
|
||||
Reference in New Issue
Block a user