|
@@ -9,6 +9,8 @@ import {
|
|
|
import { apiPost } from '~/client/util/apiv1-client';
|
|
import { apiPost } from '~/client/util/apiv1-client';
|
|
|
import { usePutBackPageModal } from '~/stores/modal';
|
|
import { usePutBackPageModal } from '~/stores/modal';
|
|
|
import { mutateAllPageInfo } from '~/stores/page';
|
|
import { mutateAllPageInfo } from '~/stores/page';
|
|
|
|
|
+import { useSWRINFxRecentlyUpdated } from '~/stores/page-listing';
|
|
|
|
|
+
|
|
|
|
|
|
|
|
import ApiErrorMessageList from './PageManagement/ApiErrorMessageList';
|
|
import ApiErrorMessageList from './PageManagement/ApiErrorMessageList';
|
|
|
|
|
|
|
@@ -25,6 +27,8 @@ const PutBackPageModal = () => {
|
|
|
|
|
|
|
|
const [isPutbackRecursively, setIsPutbackRecursively] = useState(true);
|
|
const [isPutbackRecursively, setIsPutbackRecursively] = useState(true);
|
|
|
|
|
|
|
|
|
|
+ const { mutate: mutateRecentlyUpdated } = useSWRINFxRecentlyUpdated(20, true);
|
|
|
|
|
+
|
|
|
function changeIsPutbackRecursivelyHandler() {
|
|
function changeIsPutbackRecursivelyHandler() {
|
|
|
setIsPutbackRecursively(!isPutbackRecursively);
|
|
setIsPutbackRecursively(!isPutbackRecursively);
|
|
|
}
|
|
}
|
|
@@ -47,6 +51,7 @@ const PutBackPageModal = () => {
|
|
|
onPutBacked(response.page.path);
|
|
onPutBacked(response.page.path);
|
|
|
}
|
|
}
|
|
|
closePutBackPageModal();
|
|
closePutBackPageModal();
|
|
|
|
|
+ mutateRecentlyUpdated();
|
|
|
}
|
|
}
|
|
|
catch (err) {
|
|
catch (err) {
|
|
|
setTargetPath(err.data);
|
|
setTargetPath(err.data);
|