Explorar o código

show toastWarning

kaori %!s(int64=4) %!d(string=hai) anos
pai
achega
c1f0f7f1f8
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      packages/app/src/components/Sidebar/PageTree/Item.tsx

+ 2 - 1
packages/app/src/components/Sidebar/PageTree/Item.tsx

@@ -4,6 +4,7 @@ import React, {
 import nodePath from 'path';
 import { useTranslation } from 'react-i18next';
 import { pagePathUtils } from '@growi/core';
+import { toastWarning } from '~/client/util/apiNotification';
 
 import { ItemNode } from './ItemNode';
 import { IPageHasId } from '~/interfaces/page';
@@ -149,7 +150,7 @@ const Item: FC<ItemProps> = (props: ItemProps) => {
 
   // TODO: go to create page page
   const onPressEnterHandler = () => {
-    console.log('Enter key was pressed!');
+    toastWarning(t('search_result.currently_not_implemented'));
   };
 
   // didMount