@itilite/iui-user-management 0.4.219 → 0.4.220
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +36 -0
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +36 -0
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -1115,6 +1115,24 @@ var formatUpdateUserPayload = function formatUpdateUserPayload(payload, inputCha
|
|
|
1115
1115
|
});
|
|
1116
1116
|
}
|
|
1117
1117
|
}
|
|
1118
|
+
if (payload.uploadedFiles && payload.uploadedFiles.length > 0) {
|
|
1119
|
+
res.fields.files = payload.uploadedFiles.filter(function (_file) {
|
|
1120
|
+
return !_file.isExistingFile;
|
|
1121
|
+
}).map(function (_file) {
|
|
1122
|
+
return {
|
|
1123
|
+
file_type: _file.file_type,
|
|
1124
|
+
file_path: _file.file_path,
|
|
1125
|
+
user_file_name: _file.user_file_name,
|
|
1126
|
+
upload: _file.upload
|
|
1127
|
+
};
|
|
1128
|
+
});
|
|
1129
|
+
}
|
|
1130
|
+
if (payload.filesForDelete.length > 0) {
|
|
1131
|
+
res.fields.filesToDelete = payload.filesForDelete;
|
|
1132
|
+
}
|
|
1133
|
+
if (payload.profilePicDelete.length > 0) {
|
|
1134
|
+
res.fields.profilePicDelete = payload.profilePicDelete;
|
|
1135
|
+
}
|
|
1118
1136
|
}
|
|
1119
1137
|
return res;
|
|
1120
1138
|
};
|
|
@@ -5809,6 +5827,24 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
5809
5827
|
return _extends({}, prevState, expenseApprovers);
|
|
5810
5828
|
});
|
|
5811
5829
|
}
|
|
5830
|
+
var _uploadedDocs2 = [];
|
|
5831
|
+
res.files.forEach(function (_file) {
|
|
5832
|
+
_uploadedDocs2.push({
|
|
5833
|
+
user_file_name: _file.user_file_name,
|
|
5834
|
+
id: _file.id,
|
|
5835
|
+
isExistingFile: true,
|
|
5836
|
+
file_type: _file.file_type
|
|
5837
|
+
});
|
|
5838
|
+
});
|
|
5839
|
+
if (res && res.profile_pic) {
|
|
5840
|
+
_uploadedDocs2.push({
|
|
5841
|
+
user_file_name: res.profile_pic.user_file_name,
|
|
5842
|
+
id: res.profile_pic.id,
|
|
5843
|
+
isExistingFile: true,
|
|
5844
|
+
file_type: res.profile_pic.file_type
|
|
5845
|
+
});
|
|
5846
|
+
}
|
|
5847
|
+
setUploadedFiles(_uploadedDocs2);
|
|
5812
5848
|
}
|
|
5813
5849
|
})["catch"](function () {})["finally"](function () {
|
|
5814
5850
|
dispatch(stopLoader());
|