Refactoring.
This commit is contained in:
parent
523bf28fd9
commit
3ff194fc66
@ -50,7 +50,7 @@ class CreateEditRoomStore {
|
|||||||
infoPanelStore = null;
|
infoPanelStore = null;
|
||||||
currentQuotaStore = null;
|
currentQuotaStore = null;
|
||||||
watermarksSettings = {};
|
watermarksSettings = {};
|
||||||
initialWatermarksSettings = null;
|
initialWatermarksSettings = {};
|
||||||
isImageType = false;
|
isImageType = false;
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
@ -181,7 +181,7 @@ class CreateEditRoomStore {
|
|||||||
!this.watermarksSettings.enabled,
|
!this.watermarksSettings.enabled,
|
||||||
this.watermarksSettings.imageUrl,
|
this.watermarksSettings.imageUrl,
|
||||||
);
|
);
|
||||||
|
|
||||||
if (
|
if (
|
||||||
!watermarkImage &&
|
!watermarkImage &&
|
||||||
!this.watermarksSettings.enabled &&
|
!this.watermarksSettings.enabled &&
|
||||||
@ -197,7 +197,7 @@ class CreateEditRoomStore {
|
|||||||
imageHeight: watermarksSettings.imageHeight,
|
imageHeight: watermarksSettings.imageHeight,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
const { uploadRoomLogo } = this.filesStore;
|
const { uploadRoomLogo } = this.filesStore;
|
||||||
|
|
||||||
const uploadWatermarkData = new FormData();
|
const uploadWatermarkData = new FormData();
|
||||||
|
Loading…
Reference in New Issue
Block a user