Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix stories avatar edit state
Krzysztof Bialoglowiczfb0165398bae
diff --git a/saleor/static/dashboard-next/storybook/__snapshots__/Stories.test.ts.snap b/saleor/static/dashboard-next/storybook/__snapshots__/Stories.test.ts.snapindex 9e8bc91524..58620d51b7 100644--- a/saleor/static/dashboard-next/storybook/__snapshots__/Stories.test.ts.snap+++ b/saleor/static/dashboard-next/storybook/__snapshots__/Stories.test.ts.snap@@ -77560,28 +77560,6 @@ exports[`Storyshots Views / Staff / Staff member details default 1`] = `class="StaffProperties-avatarImage-id"src="avatar1.png"/>- <div- class="StaffProperties-avatarHover-id"- >- <span- class="isvg pending"- />- <p- class="MuiTypography-root-id MuiTypography-body1-id"- >- Change photo- </p>- <p- class="MuiTypography-root-id MuiTypography-body1-id"- >- Delete photo- </p>- <input- class="StaffProperties-fileField-id"- id="fileUpload"- type="file"- />- </div></div></div><div>@@ -78057,28 +78035,6 @@ exports[`Storyshots Views / Staff / Staff member details loading 1`] = `class="MuiTypography-root-id MuiTypography-body1-id"/></div>- <div- class="StaffProperties-avatarHover-id"- >- <span- class="isvg pending"- />- <p- class="MuiTypography-root-id MuiTypography-body1-id"- >- Change photo- </p>- <p- class="MuiTypography-root-id MuiTypography-body1-id"- >- Delete photo- </p>- <input- class="StaffProperties-fileField-id"- id="fileUpload"- type="file"- />- </div></div></div><div>@@ -78758,28 +78714,6 @@ exports[`Storyshots Views / Staff / Staff member details not admin 1`] = `class="StaffProperties-avatarImage-id"src="avatar1.png"/>- <div- class="StaffProperties-avatarHover-id"- >- <span- class="isvg pending"- />- <p- class="MuiTypography-root-id MuiTypography-body1-id"- >- Change photo- </p>- <p- class="MuiTypography-root-id MuiTypography-body1-id"- >- Delete photo- </p>- <input- class="StaffProperties-fileField-id"- id="fileUpload"- type="file"- />- </div></div></div><div>diff --git a/saleor/static/dashboard-next/storybook/stories/staff/StaffDetailsPage.tsx b/saleor/static/dashboard-next/storybook/stories/staff/StaffDetailsPage.tsxindex 8de348dc9b..61bde9f12e 100644--- a/saleor/static/dashboard-next/storybook/stories/staff/StaffDetailsPage.tsx+++ b/saleor/static/dashboard-next/storybook/stories/staff/StaffDetailsPage.tsx@@ -9,7 +9,7 @@ import { permissions, staffMember } from "../../../staff/fixtures";import Decorator from "../../Decorator";const props: Omit<StaffDetailsPageProps, "classes"> = {- canEditAvatar: true,+ canEditAvatar: false,canEditStatus: true,canRemove: true,disabled: false,@@ -39,5 +39,10 @@ storiesOf("Views / Staff / Staff member details", module)/>)).add("himself", () => (- <StaffDetailsPage {...props} canEditStatus={false} canRemove={false} />+ <StaffDetailsPage+ {...props}+ canEditStatus={false}+ canRemove={false}+ canEditAvatar={true}+ />));