@contrail/flexplm 1.7.0-alpha.c295a1e → 1.7.1-alpha.09c0de6
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.
|
@@ -9,6 +9,7 @@ export declare class ThumbnailUtil {
|
|
|
9
9
|
/** The max_thumbnail_size is for limiting the size of the thumbnail being sent to FlexPLM. It is used when checking the size of the auto generated thumbnails (smallViewable, tinyViewable, etc.). */
|
|
10
10
|
private max_thumbnail_size;
|
|
11
11
|
private entities;
|
|
12
|
+
static THUMBNAIL: string;
|
|
12
13
|
static NEW_THUMBNAIL_ID: string;
|
|
13
14
|
static EXISTING_THUMBNAIL_ID: string;
|
|
14
15
|
static REMOVE_THUMBNAIL: string;
|
|
@@ -136,7 +136,8 @@ class ThumbnailUtil {
|
|
|
136
136
|
const eventData = event.data || {};
|
|
137
137
|
const newThumbnailId = eventData[ThumbnailUtil.NEW_THUMBNAIL_ID];
|
|
138
138
|
const existingThumbnailId = eventData[ThumbnailUtil.EXISTING_THUMBNAIL_ID];
|
|
139
|
-
const thumbnailUrl =
|
|
139
|
+
const thumbnailUrl = eventData[ThumbnailUtil.THUMBNAIL];
|
|
140
|
+
// const thumbnailUrl = newThumbnailId || existingThumbnailId;
|
|
140
141
|
// Case 1: REMOVE_THUMBNAIL
|
|
141
142
|
if (newThumbnailId === ThumbnailUtil.REMOVE_THUMBNAIL) {
|
|
142
143
|
if (primaryViewableId) {
|
|
@@ -236,6 +237,8 @@ class ThumbnailUtil {
|
|
|
236
237
|
}
|
|
237
238
|
}
|
|
238
239
|
exports.ThumbnailUtil = ThumbnailUtil;
|
|
240
|
+
// Adding Thumbnail property
|
|
241
|
+
ThumbnailUtil.THUMBNAIL = 'THUMBNAIL';
|
|
239
242
|
ThumbnailUtil.NEW_THUMBNAIL_ID = 'NEW_THUMBNAIL_ID';
|
|
240
243
|
ThumbnailUtil.EXISTING_THUMBNAIL_ID = 'EXISTING_THUMBNAIL_ID';
|
|
241
244
|
ThumbnailUtil.REMOVE_THUMBNAIL = 'REMOVE_THUMBNAIL';
|