Skip to content

Commit

Permalink
feature:idurar#548 created new email editor page :frontend init
Browse files Browse the repository at this point in the history
  • Loading branch information
ritik kumar committed Sep 19, 2023
1 parent 12de670 commit af62b20
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion frontend/src/modules/ErpPanelModule/DataTable.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export default function DataTable({ config, DataTableDropMenu }) {
<Button onClick={handelDataTableLoad} key={`${uniqueId()}`} icon={<RedoOutlined />}>
Refresh
</Button>,
create?<AddNewItem config={config} key={`${uniqueId()}`} />:<>y</>,
create?<AddNewItem config={config} key={`${uniqueId()}`} />:<></>,
]}
style={{
padding: '20px 0px',
Expand Down
15 changes: 10 additions & 5 deletions setup/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@ async function setupApp() {
const financeConfig = JSON.parse(
fs.readFileSync(__dirname + '/config/financeConfig.json', 'utf-8')
);
const emailTemplate = JSON.parse(
fs.readFileSync(__dirname + '/config/emailTemplate.json', 'utf-8')
);
const crmConfig = JSON.parse(fs.readFileSync(__dirname + '/config/crmConfig.json', 'utf-8'));
const customConfig = JSON.parse(
fs.readFileSync(__dirname + '/config/customConfig.json', 'utf-8')
Expand All @@ -41,12 +38,20 @@ async function setupApp() {
...appConfig,
...companyConfig,
...financeConfig,
...emailTemplate,
...crmConfig,
...customConfig,
]);

console.log('👍 Settings created : Done!');

const Email = require('../models/coreModels/Email');
const emailTemplate = JSON.parse(
fs.readFileSync(__dirname + '/config/emailTemplate.json', 'utf-8')
);

await Email.insertMany([
...emailTemplate
])
console.log('👍 Email Templates Created : Done!');
console.log('🥳 Setup completed :Success!');
process.exit();
} catch (e) {
Expand Down

0 comments on commit af62b20

Please sign in to comment.