Skip to content

Commit

Permalink
adding multiple group now working
Browse files Browse the repository at this point in the history
  • Loading branch information
syrk4web committed Jul 27, 2024
1 parent 3b8393c commit a90fd30
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
9 changes: 6 additions & 3 deletions src/ui/client/dashboard/store/form.js
Original file line number Diff line number Diff line change
Expand Up @@ -357,8 +357,8 @@ export const createFormStore = (storeName, formType) => {
_getPluginSettingsValue(value, formattedData.value);
_getPluginMultiplesValue(value, formattedData.value);
}

isUpdateData.value = Object.keys(formattedData.value).length > 0;
isUpdateData.value =
Object.keys(formattedData.value).length > 0 ? true : false;
}

/**
Expand All @@ -372,7 +372,9 @@ export const createFormStore = (storeName, formType) => {
if (!value?.multiples) return;
for (const [multName, multGroups] of Object.entries(value.multiples)) {
for (const [groupName, group] of Object.entries(multGroups)) {
_checkSettingToAddValue(group, groupName);
for (const [settName, setting] of Object.entries(group)) {
_checkSettingToAddValue(setting, settName);
}
}
}
}
Expand Down Expand Up @@ -431,6 +433,7 @@ export const createFormStore = (storeName, formType) => {
templateUI,
templateUIFormat,
rawData,
isUpdateData,
setTemplate,
setRawData,
addMultiple,
Expand Down
2 changes: 1 addition & 1 deletion src/ui/templates/global-config.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<link rel="stylesheet" href="css/flag-icons.min.css" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>BunkerWeb | Global config</title>
<script type="module" crossorigin nonce="{{ script_nonce }}" src="assets/global_config-WMS8GSXH.js"></script>
<script type="module" crossorigin nonce="{{ script_nonce }}" src="assets/global_config-sP0XfldY.js"></script>
<link rel="modulepreload" crossorigin nonce="{{ script_nonce }}" href="assets/Title-Dk3fE87D.js">
<link rel="modulepreload" crossorigin nonce="{{ script_nonce }}" href="assets/Subtitle-EK-_CGmV.js">
<link rel="modulepreload" crossorigin nonce="{{ script_nonce }}" href="assets/Text-CrOYIQ2t.js">
Expand Down
2 changes: 1 addition & 1 deletion src/ui/templates/jobs.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<link rel="stylesheet" href="css/flag-icons.min.css" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>BunkerWeb | Jobs</title>
<script type="module" crossorigin nonce="{{ script_nonce }}" src="assets/jobs-BiZruuR5.js"></script>
<script type="module" crossorigin nonce="{{ script_nonce }}" src="assets/jobs-fcsA3eYf.js"></script>
<link rel="modulepreload" crossorigin nonce="{{ script_nonce }}" href="assets/Title-Dk3fE87D.js">
<link rel="modulepreload" crossorigin nonce="{{ script_nonce }}" href="assets/Text-CrOYIQ2t.js">
<link rel="modulepreload" crossorigin nonce="{{ script_nonce }}" href="assets/Filter-ByMTlYtF.js">
Expand Down

0 comments on commit a90fd30

Please sign in to comment.