Fix staff return link
This commit is contained in:
parent
116d952bea
commit
d3b4e47504
1 changed files with 8 additions and 0 deletions
|
@ -1,4 +1,5 @@
|
||||||
import React from "react";
|
import React from "react";
|
||||||
|
import urlJoin from "url-join";
|
||||||
|
|
||||||
import useListSettings from "@saleor/hooks/useListSettings";
|
import useListSettings from "@saleor/hooks/useListSettings";
|
||||||
import useNavigator from "@saleor/hooks/useNavigator";
|
import useNavigator from "@saleor/hooks/useNavigator";
|
||||||
|
@ -8,10 +9,12 @@ import usePaginator, {
|
||||||
} from "@saleor/hooks/usePaginator";
|
} from "@saleor/hooks/usePaginator";
|
||||||
import { useIntl } from "react-intl";
|
import { useIntl } from "react-intl";
|
||||||
|
|
||||||
|
import { newPasswordUrl } from "@saleor/auth/urls";
|
||||||
import DeleteFilterTabDialog from "@saleor/components/DeleteFilterTabDialog";
|
import DeleteFilterTabDialog from "@saleor/components/DeleteFilterTabDialog";
|
||||||
import SaveFilterTabDialog, {
|
import SaveFilterTabDialog, {
|
||||||
SaveFilterTabDialogFormData
|
SaveFilterTabDialogFormData
|
||||||
} from "@saleor/components/SaveFilterTabDialog";
|
} from "@saleor/components/SaveFilterTabDialog";
|
||||||
|
import { APP_MOUNT_URI } from "@saleor/config";
|
||||||
import { configurationMenuUrl } from "@saleor/configuration";
|
import { configurationMenuUrl } from "@saleor/configuration";
|
||||||
import { commonMessages } from "@saleor/intl";
|
import { commonMessages } from "@saleor/intl";
|
||||||
import { getMutationState, maybe } from "@saleor/misc";
|
import { getMutationState, maybe } from "@saleor/misc";
|
||||||
|
@ -146,6 +149,11 @@ export const StaffList: React.StatelessComponent<StaffListProps> = ({
|
||||||
permissions: variables.fullAccess
|
permissions: variables.fullAccess
|
||||||
? data.shop.permissions.map(perm => perm.code)
|
? data.shop.permissions.map(perm => perm.code)
|
||||||
: undefined,
|
: undefined,
|
||||||
|
redirectUrl: urlJoin(
|
||||||
|
window.location.origin,
|
||||||
|
APP_MOUNT_URI === "/" ? "" : APP_MOUNT_URI,
|
||||||
|
newPasswordUrl().replace(/\?/, "")
|
||||||
|
),
|
||||||
sendPasswordEmail: true
|
sendPasswordEmail: true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue