Merge branch 'release/AIO/2024-05-10' into test-AIO
This commit is contained in:
@@ -18,8 +18,6 @@ import ChatOpenButton from "../chat-open-button/chat-open-button.component";
|
|||||||
import OwnerNameDisplay from "../owner-name-display/owner-name-display.component";
|
import OwnerNameDisplay from "../owner-name-display/owner-name-display.component";
|
||||||
import { setJoyRideSteps } from "../../redux/application/application.actions";
|
import { setJoyRideSteps } from "../../redux/application/application.actions";
|
||||||
import { OwnerNameDisplayFunction } from "./../owner-name-display/owner-name-display.component";
|
import { OwnerNameDisplayFunction } from "./../owner-name-display/owner-name-display.component";
|
||||||
import InstanceRenderManager from "../../utils/instanceRenderMgr";
|
|
||||||
|
|
||||||
const mapStateToProps = createStructuredSelector({
|
const mapStateToProps = createStructuredSelector({
|
||||||
bodyshop: selectBodyshop
|
bodyshop: selectBodyshop
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -30,8 +30,7 @@ export function ShopInfoRbacComponent({ form, bodyshop }) {
|
|||||||
return (
|
return (
|
||||||
<RbacWrapper action="shop:rbac">
|
<RbacWrapper action="shop:rbac">
|
||||||
<LayoutFormRow>
|
<LayoutFormRow>
|
||||||
{HasFeatureAccess({ featureName: "export", bodyshop }) && (
|
{...HasFeatureAccess({ featureName: "export", bodyshop }) && [
|
||||||
<>
|
|
||||||
<Form.Item
|
<Form.Item
|
||||||
label={t("bodyshop.fields.rbac.accounting.exportlog")}
|
label={t("bodyshop.fields.rbac.accounting.exportlog")}
|
||||||
rules={[
|
rules={[
|
||||||
@@ -43,7 +42,7 @@ export function ShopInfoRbacComponent({ form, bodyshop }) {
|
|||||||
name={["md_rbac", "accounting:exportlog"]}
|
name={["md_rbac", "accounting:exportlog"]}
|
||||||
>
|
>
|
||||||
<InputNumber />
|
<InputNumber />
|
||||||
</Form.Item>
|
</Form.Item>,
|
||||||
<Form.Item
|
<Form.Item
|
||||||
label={t("bodyshop.fields.rbac.accounting.payables")}
|
label={t("bodyshop.fields.rbac.accounting.payables")}
|
||||||
rules={[
|
rules={[
|
||||||
@@ -55,7 +54,7 @@ export function ShopInfoRbacComponent({ form, bodyshop }) {
|
|||||||
name={["md_rbac", "accounting:payables"]}
|
name={["md_rbac", "accounting:payables"]}
|
||||||
>
|
>
|
||||||
<InputNumber />
|
<InputNumber />
|
||||||
</Form.Item>
|
</Form.Item>,
|
||||||
<Form.Item
|
<Form.Item
|
||||||
label={t("bodyshop.fields.rbac.accounting.payments")}
|
label={t("bodyshop.fields.rbac.accounting.payments")}
|
||||||
rules={[
|
rules={[
|
||||||
@@ -67,7 +66,7 @@ export function ShopInfoRbacComponent({ form, bodyshop }) {
|
|||||||
name={["md_rbac", "accounting:payments"]}
|
name={["md_rbac", "accounting:payments"]}
|
||||||
>
|
>
|
||||||
<InputNumber />
|
<InputNumber />
|
||||||
</Form.Item>
|
</Form.Item>,
|
||||||
<Form.Item
|
<Form.Item
|
||||||
label={t("bodyshop.fields.rbac.accounting.receivables")}
|
label={t("bodyshop.fields.rbac.accounting.receivables")}
|
||||||
rules={[
|
rules={[
|
||||||
@@ -80,10 +79,8 @@ export function ShopInfoRbacComponent({ form, bodyshop }) {
|
|||||||
>
|
>
|
||||||
<InputNumber />
|
<InputNumber />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
</>
|
]}
|
||||||
)}
|
{...HasFeatureAccess({ featureName: "bills", bodyshop }) && [
|
||||||
{HasFeatureAccess({ featureName: "bills", bodyshop }) && (
|
|
||||||
<>
|
|
||||||
<Form.Item
|
<Form.Item
|
||||||
label={t("bodyshop.fields.rbac.bills.delete")}
|
label={t("bodyshop.fields.rbac.bills.delete")}
|
||||||
rules={[
|
rules={[
|
||||||
@@ -95,7 +92,7 @@ export function ShopInfoRbacComponent({ form, bodyshop }) {
|
|||||||
name={["md_rbac", "bills:delete"]}
|
name={["md_rbac", "bills:delete"]}
|
||||||
>
|
>
|
||||||
<InputNumber />
|
<InputNumber />
|
||||||
</Form.Item>
|
</Form.Item>,
|
||||||
<Form.Item
|
<Form.Item
|
||||||
label={t("bodyshop.fields.rbac.bills.enter")}
|
label={t("bodyshop.fields.rbac.bills.enter")}
|
||||||
rules={[
|
rules={[
|
||||||
@@ -107,7 +104,7 @@ export function ShopInfoRbacComponent({ form, bodyshop }) {
|
|||||||
name={["md_rbac", "bills:enter"]}
|
name={["md_rbac", "bills:enter"]}
|
||||||
>
|
>
|
||||||
<InputNumber />
|
<InputNumber />
|
||||||
</Form.Item>
|
</Form.Item>,
|
||||||
<Form.Item
|
<Form.Item
|
||||||
label={t("bodyshop.fields.rbac.bills.list")}
|
label={t("bodyshop.fields.rbac.bills.list")}
|
||||||
rules={[
|
rules={[
|
||||||
@@ -119,7 +116,7 @@ export function ShopInfoRbacComponent({ form, bodyshop }) {
|
|||||||
name={["md_rbac", "bills:list"]}
|
name={["md_rbac", "bills:list"]}
|
||||||
>
|
>
|
||||||
<InputNumber />
|
<InputNumber />
|
||||||
</Form.Item>
|
</Form.Item>,
|
||||||
<Form.Item
|
<Form.Item
|
||||||
label={t("bodyshop.fields.rbac.bills.reexport")}
|
label={t("bodyshop.fields.rbac.bills.reexport")}
|
||||||
rules={[
|
rules={[
|
||||||
@@ -131,7 +128,7 @@ export function ShopInfoRbacComponent({ form, bodyshop }) {
|
|||||||
name={["md_rbac", "bills:reexport"]}
|
name={["md_rbac", "bills:reexport"]}
|
||||||
>
|
>
|
||||||
<InputNumber />
|
<InputNumber />
|
||||||
</Form.Item>
|
</Form.Item>,
|
||||||
<Form.Item
|
<Form.Item
|
||||||
label={t("bodyshop.fields.rbac.bills.view")}
|
label={t("bodyshop.fields.rbac.bills.view")}
|
||||||
rules={[
|
rules={[
|
||||||
@@ -144,11 +141,9 @@ export function ShopInfoRbacComponent({ form, bodyshop }) {
|
|||||||
>
|
>
|
||||||
<InputNumber />
|
<InputNumber />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
</>
|
]}
|
||||||
)}
|
|
||||||
|
|
||||||
{HasFeatureAccess({ featureName: "courtesycars", bodyshop }) && (
|
{...HasFeatureAccess({ featureName: "courtesycars", bodyshop }) && [
|
||||||
<>
|
|
||||||
<Form.Item
|
<Form.Item
|
||||||
label={t("bodyshop.fields.rbac.contracts.create")}
|
label={t("bodyshop.fields.rbac.contracts.create")}
|
||||||
rules={[
|
rules={[
|
||||||
@@ -160,7 +155,7 @@ export function ShopInfoRbacComponent({ form, bodyshop }) {
|
|||||||
name={["md_rbac", "contracts:create"]}
|
name={["md_rbac", "contracts:create"]}
|
||||||
>
|
>
|
||||||
<InputNumber />
|
<InputNumber />
|
||||||
</Form.Item>
|
</Form.Item>,
|
||||||
<Form.Item
|
<Form.Item
|
||||||
label={t("bodyshop.fields.rbac.contracts.detail")}
|
label={t("bodyshop.fields.rbac.contracts.detail")}
|
||||||
rules={[
|
rules={[
|
||||||
@@ -172,7 +167,7 @@ export function ShopInfoRbacComponent({ form, bodyshop }) {
|
|||||||
name={["md_rbac", "contracts:detail"]}
|
name={["md_rbac", "contracts:detail"]}
|
||||||
>
|
>
|
||||||
<InputNumber />
|
<InputNumber />
|
||||||
</Form.Item>
|
</Form.Item>,
|
||||||
<Form.Item
|
<Form.Item
|
||||||
label={t("bodyshop.fields.rbac.contracts.list")}
|
label={t("bodyshop.fields.rbac.contracts.list")}
|
||||||
rules={[
|
rules={[
|
||||||
@@ -184,7 +179,7 @@ export function ShopInfoRbacComponent({ form, bodyshop }) {
|
|||||||
name={["md_rbac", "contracts:list"]}
|
name={["md_rbac", "contracts:list"]}
|
||||||
>
|
>
|
||||||
<InputNumber />
|
<InputNumber />
|
||||||
</Form.Item>
|
</Form.Item>,
|
||||||
<Form.Item
|
<Form.Item
|
||||||
label={t("bodyshop.fields.rbac.courtesycar.create")}
|
label={t("bodyshop.fields.rbac.courtesycar.create")}
|
||||||
rules={[
|
rules={[
|
||||||
@@ -196,7 +191,7 @@ export function ShopInfoRbacComponent({ form, bodyshop }) {
|
|||||||
name={["md_rbac", "courtesycar:create"]}
|
name={["md_rbac", "courtesycar:create"]}
|
||||||
>
|
>
|
||||||
<InputNumber />
|
<InputNumber />
|
||||||
</Form.Item>
|
</Form.Item>,
|
||||||
<Form.Item
|
<Form.Item
|
||||||
label={t("bodyshop.fields.rbac.courtesycar.detail")}
|
label={t("bodyshop.fields.rbac.courtesycar.detail")}
|
||||||
rules={[
|
rules={[
|
||||||
@@ -208,7 +203,7 @@ export function ShopInfoRbacComponent({ form, bodyshop }) {
|
|||||||
name={["md_rbac", "courtesycar:detail"]}
|
name={["md_rbac", "courtesycar:detail"]}
|
||||||
>
|
>
|
||||||
<InputNumber />
|
<InputNumber />
|
||||||
</Form.Item>
|
</Form.Item>,
|
||||||
<Form.Item
|
<Form.Item
|
||||||
label={t("bodyshop.fields.rbac.courtesycar.list")}
|
label={t("bodyshop.fields.rbac.courtesycar.list")}
|
||||||
rules={[
|
rules={[
|
||||||
@@ -221,10 +216,8 @@ export function ShopInfoRbacComponent({ form, bodyshop }) {
|
|||||||
>
|
>
|
||||||
<InputNumber />
|
<InputNumber />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
</>
|
]}
|
||||||
)}
|
{...HasFeatureAccess({ featureName: "csi", bodyshop }) && [
|
||||||
{HasFeatureAccess({ featureName: "csi", bodyshop }) && (
|
|
||||||
<>
|
|
||||||
<Form.Item
|
<Form.Item
|
||||||
label={t("bodyshop.fields.rbac.csi.export")}
|
label={t("bodyshop.fields.rbac.csi.export")}
|
||||||
rules={[
|
rules={[
|
||||||
@@ -236,7 +229,7 @@ export function ShopInfoRbacComponent({ form, bodyshop }) {
|
|||||||
name={["md_rbac", "csi:export"]}
|
name={["md_rbac", "csi:export"]}
|
||||||
>
|
>
|
||||||
<InputNumber />
|
<InputNumber />
|
||||||
</Form.Item>
|
</Form.Item>,
|
||||||
<Form.Item
|
<Form.Item
|
||||||
label={t("bodyshop.fields.rbac.csi.page")}
|
label={t("bodyshop.fields.rbac.csi.page")}
|
||||||
rules={[
|
rules={[
|
||||||
@@ -249,8 +242,7 @@ export function ShopInfoRbacComponent({ form, bodyshop }) {
|
|||||||
>
|
>
|
||||||
<InputNumber />
|
<InputNumber />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
</>
|
]}
|
||||||
)}
|
|
||||||
<Form.Item
|
<Form.Item
|
||||||
label={t("bodyshop.fields.rbac.employees.page")}
|
label={t("bodyshop.fields.rbac.employees.page")}
|
||||||
rules={[
|
rules={[
|
||||||
@@ -569,8 +561,7 @@ export function ShopInfoRbacComponent({ form, bodyshop }) {
|
|||||||
<InputNumber />
|
<InputNumber />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
)}
|
)}
|
||||||
{HasFeatureAccess({ featureName: "timetickets", bodyshop }) && (
|
{...HasFeatureAccess({ featureName: "timetickets", bodyshop }) && [
|
||||||
<>
|
|
||||||
<Form.Item
|
<Form.Item
|
||||||
label={t("bodyshop.fields.rbac.shiftclock.view")}
|
label={t("bodyshop.fields.rbac.shiftclock.view")}
|
||||||
rules={[
|
rules={[
|
||||||
@@ -582,7 +573,7 @@ export function ShopInfoRbacComponent({ form, bodyshop }) {
|
|||||||
name={["md_rbac", "shiftclock:view"]}
|
name={["md_rbac", "shiftclock:view"]}
|
||||||
>
|
>
|
||||||
<InputNumber />
|
<InputNumber />
|
||||||
</Form.Item>
|
</Form.Item>,
|
||||||
<Form.Item
|
<Form.Item
|
||||||
label={t("bodyshop.fields.rbac.shop.config")}
|
label={t("bodyshop.fields.rbac.shop.config")}
|
||||||
rules={[
|
rules={[
|
||||||
@@ -594,7 +585,7 @@ export function ShopInfoRbacComponent({ form, bodyshop }) {
|
|||||||
name={["md_rbac", "shop:config"]}
|
name={["md_rbac", "shop:config"]}
|
||||||
>
|
>
|
||||||
<InputNumber />
|
<InputNumber />
|
||||||
</Form.Item>
|
</Form.Item>,
|
||||||
<Form.Item
|
<Form.Item
|
||||||
label={t("bodyshop.fields.rbac.timetickets.edit")}
|
label={t("bodyshop.fields.rbac.timetickets.edit")}
|
||||||
rules={[
|
rules={[
|
||||||
@@ -606,7 +597,7 @@ export function ShopInfoRbacComponent({ form, bodyshop }) {
|
|||||||
name={["md_rbac", "timetickets:edit"]}
|
name={["md_rbac", "timetickets:edit"]}
|
||||||
>
|
>
|
||||||
<InputNumber />
|
<InputNumber />
|
||||||
</Form.Item>
|
</Form.Item>,
|
||||||
<Form.Item
|
<Form.Item
|
||||||
label={t("bodyshop.fields.rbac.timetickets.shiftedit")}
|
label={t("bodyshop.fields.rbac.timetickets.shiftedit")}
|
||||||
rules={[
|
rules={[
|
||||||
@@ -618,7 +609,7 @@ export function ShopInfoRbacComponent({ form, bodyshop }) {
|
|||||||
name={["md_rbac", "timetickets:shiftedit"]}
|
name={["md_rbac", "timetickets:shiftedit"]}
|
||||||
>
|
>
|
||||||
<InputNumber />
|
<InputNumber />
|
||||||
</Form.Item>
|
</Form.Item>,
|
||||||
<Form.Item
|
<Form.Item
|
||||||
label={t("bodyshop.fields.rbac.timetickets.editcommitted")}
|
label={t("bodyshop.fields.rbac.timetickets.editcommitted")}
|
||||||
rules={[
|
rules={[
|
||||||
@@ -630,7 +621,7 @@ export function ShopInfoRbacComponent({ form, bodyshop }) {
|
|||||||
name={["md_rbac", "timetickets:editcommitted"]}
|
name={["md_rbac", "timetickets:editcommitted"]}
|
||||||
>
|
>
|
||||||
<InputNumber />
|
<InputNumber />
|
||||||
</Form.Item>
|
</Form.Item>,
|
||||||
<Form.Item
|
<Form.Item
|
||||||
label={t("bodyshop.fields.rbac.ttapprovals.view")}
|
label={t("bodyshop.fields.rbac.ttapprovals.view")}
|
||||||
rules={[
|
rules={[
|
||||||
@@ -642,7 +633,7 @@ export function ShopInfoRbacComponent({ form, bodyshop }) {
|
|||||||
name={["md_rbac", "ttapprovals:view"]}
|
name={["md_rbac", "ttapprovals:view"]}
|
||||||
>
|
>
|
||||||
<InputNumber />
|
<InputNumber />
|
||||||
</Form.Item>
|
</Form.Item>,
|
||||||
<Form.Item
|
<Form.Item
|
||||||
label={t("bodyshop.fields.rbac.ttapprovals.approve")}
|
label={t("bodyshop.fields.rbac.ttapprovals.approve")}
|
||||||
rules={[
|
rules={[
|
||||||
@@ -654,7 +645,7 @@ export function ShopInfoRbacComponent({ form, bodyshop }) {
|
|||||||
name={["md_rbac", "ttapprovals:approve"]}
|
name={["md_rbac", "ttapprovals:approve"]}
|
||||||
>
|
>
|
||||||
<InputNumber />
|
<InputNumber />
|
||||||
</Form.Item>
|
</Form.Item>,
|
||||||
<Form.Item
|
<Form.Item
|
||||||
label={t("bodyshop.fields.rbac.timetickets.enter")}
|
label={t("bodyshop.fields.rbac.timetickets.enter")}
|
||||||
rules={[
|
rules={[
|
||||||
@@ -666,7 +657,7 @@ export function ShopInfoRbacComponent({ form, bodyshop }) {
|
|||||||
name={["md_rbac", "timetickets:enter"]}
|
name={["md_rbac", "timetickets:enter"]}
|
||||||
>
|
>
|
||||||
<InputNumber />
|
<InputNumber />
|
||||||
</Form.Item>
|
</Form.Item>,
|
||||||
<Form.Item
|
<Form.Item
|
||||||
label={t("bodyshop.fields.rbac.timetickets.list")}
|
label={t("bodyshop.fields.rbac.timetickets.list")}
|
||||||
rules={[
|
rules={[
|
||||||
@@ -678,7 +669,7 @@ export function ShopInfoRbacComponent({ form, bodyshop }) {
|
|||||||
name={["md_rbac", "timetickets:list"]}
|
name={["md_rbac", "timetickets:list"]}
|
||||||
>
|
>
|
||||||
<InputNumber />
|
<InputNumber />
|
||||||
</Form.Item>
|
</Form.Item>,
|
||||||
<Form.Item
|
<Form.Item
|
||||||
label={t("bodyshop.fields.rbac.timetickets.shiftedit")}
|
label={t("bodyshop.fields.rbac.timetickets.shiftedit")}
|
||||||
rules={[
|
rules={[
|
||||||
@@ -691,8 +682,7 @@ export function ShopInfoRbacComponent({ form, bodyshop }) {
|
|||||||
>
|
>
|
||||||
<InputNumber />
|
<InputNumber />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
</>
|
]}
|
||||||
)}
|
|
||||||
<Form.Item
|
<Form.Item
|
||||||
label={t("bodyshop.fields.rbac.shop.vendors")}
|
label={t("bodyshop.fields.rbac.shop.vendors")}
|
||||||
rules={[
|
rules={[
|
||||||
|
|||||||
Reference in New Issue
Block a user