|
|
@@ -86,8 +86,9 @@ const ItemControl: FC<ItemControlProps> = memo((props: ItemControlProps) => {
|
|
|
const ItemCount: FC = () => {
|
|
|
return (
|
|
|
<>
|
|
|
- <span className="grw-pagetree-count badge badge-pill badge-light">
|
|
|
+ <span className="grw-pagetree-count badge badge-pill badge-light text-muted">
|
|
|
{/* TODO: consider to show the number of children pages */}
|
|
|
+ 00
|
|
|
</span>
|
|
|
</>
|
|
|
);
|
|
|
@@ -139,8 +140,8 @@ const Item: FC<ItemProps> = (props: ItemProps) => {
|
|
|
const inputValidator = (title: string | null): AlertInfo | null => {
|
|
|
if (title == null || title === '') {
|
|
|
return {
|
|
|
- type: AlertType.ERROR,
|
|
|
- message: t('Page title is required'),
|
|
|
+ type: AlertType.WARNING,
|
|
|
+ message: t('form_validation.title_required'),
|
|
|
};
|
|
|
}
|
|
|
|
|
|
@@ -191,7 +192,7 @@ const Item: FC<ItemProps> = (props: ItemProps) => {
|
|
|
</div>
|
|
|
</button>
|
|
|
<a href={page._id} className="grw-pagetree-title-anchor flex-grow-1">
|
|
|
- <p className={`grw-pagetree-title m-auto ${page.isEmpty && 'text-muted'}`}>{nodePath.basename(page.path as string) || '/'}</p>
|
|
|
+ <p className={`text-truncate m-auto ${page.isEmpty && 'text-muted'}`}>{nodePath.basename(page.path as string) || '/'}</p>
|
|
|
</a>
|
|
|
<div className="grw-pagetree-count-wrapper">
|
|
|
<ItemCount />
|