Skip to content

Commit

Permalink
Merge pull request #569 from bitholla/2.0-develop
Browse files Browse the repository at this point in the history
2.0 develop
  • Loading branch information
abeikverdi authored Feb 25, 2021
2 parents 7018c75 + 4e025a9 commit e35674d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion web/src/containers/Admin/General/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,9 @@ class General extends Component {
if (file) {
const formData = new FormData();
const { name: fileName } = file;
const uniqueId = Date.now();
const extension = fileName.split('.').pop();
const name = `${key}__${themeKey}.${extension}`;
const name = `${key}__${themeKey}___${uniqueId}.${extension}`;

formData.append('name', name);
formData.append('file', file);
Expand Down
3 changes: 2 additions & 1 deletion web/src/containers/Admin/Tiers/ModalForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,9 @@ class NewTierForm extends Component {
if (file) {
const formData = new FormData();
const { name: fileName } = file;
const uniqueId = Date.now();
const extension = fileName.split('.').pop();
const name = `${key}__${themeKey}.${extension}`;
const name = `${key}__${themeKey}___${uniqueId}.${extension}`;

formData.append('name', name);
formData.append('file', file);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,9 @@ class AllIconsModal extends Component {
if (file) {
const formData = new FormData();
const { name: fileName } = file;
const uniqueId = Date.now();
const extension = fileName.split('.').pop();
const name = `${key}__${themeKey}.${extension}`;
const name = `${key}__${themeKey}___${uniqueId}.${extension}`;

formData.append('name', name);
formData.append('file', file);
Expand Down
3 changes: 2 additions & 1 deletion web/src/containers/OperatorControls/components/UploadIcon.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,9 @@ class UploadIcon extends Component {
if (file) {
const formData = new FormData();
const { name: fileName } = file;
const uniqueId = Date.now();
const extension = fileName.split('.').pop();
const name = `${key}__${themeKey}.${extension}`;
const name = `${key}__${themeKey}___${uniqueId}.${extension}`;

formData.append('name', name);
formData.append('file', file);
Expand Down

0 comments on commit e35674d

Please sign in to comment.