Show collection preview cards and open collections links locally (#38643)
This commit is contained in:
1 parent
a8741495c4
commit
478dae0ab3
11 files changed
+92
-32
No files matched your search
@@ -38,6 +38,8 @@ import {
|
||||
} from 'mastodon/reducers/slices/collections';
|
||||
import { useAppDispatch, useAppSelector } from 'mastodon/store';
|
||||
|
||||
import { getCollectionPath } from '../utils';
|
||||
|
||||
import classes from './styles.module.scss';
|
||||
import { WizardStepTitle } from './wizard_step_title';
|
||||
|
||||
@@ -134,7 +136,7 @@ export const CollectionDetails: React.FC = () => {
|
||||
).then((result) => {
|
||||
if (isFulfilled(result)) {
|
||||
history.replace(`/@${currentUserName}/collections`);
|
||||
history.push(`/collections/${result.payload.collection.id}`, {
|
||||
history.push(getCollectionPath(result.payload.collection.id), {
|
||||
newCollection: true,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user