IO-1334 Added shop info RBAC.
This commit is contained in:
@@ -5377,6 +5377,27 @@
|
|||||||
<folder_node>
|
<folder_node>
|
||||||
<name>shop</name>
|
<name>shop</name>
|
||||||
<children>
|
<children>
|
||||||
|
<concept_node>
|
||||||
|
<name>config</name>
|
||||||
|
<definition_loaded>false</definition_loaded>
|
||||||
|
<description></description>
|
||||||
|
<comment></comment>
|
||||||
|
<default_text></default_text>
|
||||||
|
<translations>
|
||||||
|
<translation>
|
||||||
|
<language>en-US</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
<translation>
|
||||||
|
<language>es-MX</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
<translation>
|
||||||
|
<language>fr-CA</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
</translations>
|
||||||
|
</concept_node>
|
||||||
<concept_node>
|
<concept_node>
|
||||||
<name>dashboard</name>
|
<name>dashboard</name>
|
||||||
<definition_loaded>false</definition_loaded>
|
<definition_loaded>false</definition_loaded>
|
||||||
|
|||||||
@@ -52,8 +52,9 @@ const ret = {
|
|||||||
|
|
||||||
"shiftclock:view": 2,
|
"shiftclock:view": 2,
|
||||||
|
|
||||||
|
"shop:config": 4,
|
||||||
|
"shop:rbac": 5,
|
||||||
"shop:vendors": 2,
|
"shop:vendors": 2,
|
||||||
"shop:rbac": 1,
|
|
||||||
"shop:dashboard": 3,
|
"shop:dashboard": 3,
|
||||||
"shop:templates": 4,
|
"shop:templates": 4,
|
||||||
|
|
||||||
|
|||||||
@@ -513,6 +513,18 @@ export default function ShopInfoRbacComponent({ form }) {
|
|||||||
>
|
>
|
||||||
<InputNumber />
|
<InputNumber />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
|
<Form.Item
|
||||||
|
label={t("bodyshop.fields.rbac.shop.config")}
|
||||||
|
rules={[
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
//message: t("general.validation.required"),
|
||||||
|
},
|
||||||
|
]}
|
||||||
|
name={["md_rbac", "shop:config"]}
|
||||||
|
>
|
||||||
|
<InputNumber />
|
||||||
|
</Form.Item>
|
||||||
<Form.Item
|
<Form.Item
|
||||||
label={t("bodyshop.fields.rbac.shop.rbac")}
|
label={t("bodyshop.fields.rbac.shop.rbac")}
|
||||||
rules={[
|
rules={[
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import { useTranslation } from "react-i18next";
|
|||||||
import ShopEmployeesContainer from "../../components/shop-employees/shop-employees.container";
|
import ShopEmployeesContainer from "../../components/shop-employees/shop-employees.container";
|
||||||
import ShopInfoContainer from "../../components/shop-info/shop-info.container";
|
import ShopInfoContainer from "../../components/shop-info/shop-info.container";
|
||||||
import ShopCsiConfig from "../../components/shop-csi-config/shop-csi-config.component";
|
import ShopCsiConfig from "../../components/shop-csi-config/shop-csi-config.component";
|
||||||
|
import RbacWrapper from "../../components/rbac-wrapper/rbac-wrapper.component";
|
||||||
|
|
||||||
import { connect } from "react-redux";
|
import { connect } from "react-redux";
|
||||||
import { createStructuredSelector } from "reselect";
|
import { createStructuredSelector } from "reselect";
|
||||||
@@ -35,20 +36,22 @@ export function ShopPage({ bodyshop, setSelectedHeader, setBreadcrumbs }) {
|
|||||||
}, [t, setSelectedHeader, setBreadcrumbs, bodyshop.shopname]);
|
}, [t, setSelectedHeader, setBreadcrumbs, bodyshop.shopname]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Tabs>
|
<RbacWrapper action="shop:config">
|
||||||
<Tabs.TabPane tab={t("bodyshop.labels.shopinfo")} key="info">
|
<Tabs>
|
||||||
<ShopInfoContainer />
|
<Tabs.TabPane tab={t("bodyshop.labels.shopinfo")} key="info">
|
||||||
</Tabs.TabPane>
|
<ShopInfoContainer />
|
||||||
<Tabs.TabPane tab={t("bodyshop.labels.employees")} key="employees">
|
</Tabs.TabPane>
|
||||||
<ShopEmployeesContainer />
|
<Tabs.TabPane tab={t("bodyshop.labels.employees")} key="employees">
|
||||||
</Tabs.TabPane>
|
<ShopEmployeesContainer />
|
||||||
<Tabs.TabPane tab={t("bodyshop.labels.licensing")} key="licensing">
|
</Tabs.TabPane>
|
||||||
<ShopInfoUsersComponent />
|
<Tabs.TabPane tab={t("bodyshop.labels.licensing")} key="licensing">
|
||||||
</Tabs.TabPane>
|
<ShopInfoUsersComponent />
|
||||||
<Tabs.TabPane tab={t("bodyshop.labels.csiq")} key="csiq">
|
</Tabs.TabPane>
|
||||||
<ShopCsiConfig />
|
<Tabs.TabPane tab={t("bodyshop.labels.csiq")} key="csiq">
|
||||||
</Tabs.TabPane>
|
<ShopCsiConfig />
|
||||||
</Tabs>
|
</Tabs.TabPane>
|
||||||
|
</Tabs>
|
||||||
|
</RbacWrapper>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
export default connect(mapStateToProps, mapDispatchToProps)(ShopPage);
|
export default connect(mapStateToProps, mapDispatchToProps)(ShopPage);
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -352,6 +352,7 @@
|
|||||||
"view": ""
|
"view": ""
|
||||||
},
|
},
|
||||||
"shop": {
|
"shop": {
|
||||||
|
"config": "",
|
||||||
"dashboard": "",
|
"dashboard": "",
|
||||||
"rbac": "",
|
"rbac": "",
|
||||||
"templates": "",
|
"templates": "",
|
||||||
|
|||||||
@@ -352,6 +352,7 @@
|
|||||||
"view": ""
|
"view": ""
|
||||||
},
|
},
|
||||||
"shop": {
|
"shop": {
|
||||||
|
"config": "",
|
||||||
"dashboard": "",
|
"dashboard": "",
|
||||||
"rbac": "",
|
"rbac": "",
|
||||||
"templates": "",
|
"templates": "",
|
||||||
|
|||||||
Reference in New Issue
Block a user