jamespot-front-business 1.1.88 → 1.1.89

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/esm.js CHANGED
@@ -717,7 +717,7 @@ const fetchComments = createAsyncThunk('commentList/fetchCommentList', (params,
717
717
  try {
718
718
  const res = yield extra.jApi.article.getComments(params, {
719
719
  format: 'raw-list',
720
- formatExtension: ['socialActions'],
720
+ formatExtension: ['actions'],
721
721
  });
722
722
  return { idArticle: params.idArticle, list: res.result };
723
723
  }
@@ -4184,19 +4184,18 @@ function renderWidget(fieldType, fieldProperties) {
4184
4184
  return '';
4185
4185
  const isMultiple = optionEditor.value.canSelectMultiple;
4186
4186
  const options = optionEditor.value.propertyOptions;
4187
- const hasDefaultValue = optionEditor.value.defaultSelectOption;
4188
- const defaultValue = optionEditor.value.defaultSelectOptionValue.value;
4189
- const userCanModifiyByComment = optionEditor.value.userCanModifiyByComment;
4187
+ const hasDefaultValue = optionEditor.value.defaultSelectOption && optionEditor.value.defaultSelectOptionValue.value;
4188
+ const userCanModifyByComment = optionEditor.value.userCanModifyByComment;
4190
4189
  return `<widget form="select" ${isMultiple ? 'multiple="1"' : ''}>
4191
4190
  <options>
4192
4191
  ${options
4193
4192
  .map((option) => `<option value="${option.value}" label="${option.title}"></option>`)
4194
4193
  .join('')}
4195
4194
  </options>
4196
- ${hasDefaultValue || userCanModifiyByComment
4195
+ ${hasDefaultValue || userCanModifyByComment
4197
4196
  ? `<params>
4198
- ${hasDefaultValue ? `<param key="defaultValue" value="${defaultValue}"/>` : ''}
4199
- ${userCanModifiyByComment ? `<param key="explain" value="1"/>` : ''}
4197
+ ${hasDefaultValue ? `<param key="defaultValue" value="${optionEditor.value.defaultSelectOptionValue.value}"/>` : ''}
4198
+ ${userCanModifyByComment ? `<param key="explain" value="1"/>` : ''}
4200
4199
  </params>`
4201
4200
  : ''}
4202
4201
  </widget>`;
@@ -4486,12 +4485,12 @@ function renderDisplayAttr(fieldId, view) {
4486
4485
  }
4487
4486
  else if (view.type === ExtraAppFieldsItemViews.RECEIVEACOPY) {
4488
4487
  if (view.value) {
4489
- xml += `<input type="hidden" name="alertAuthor[jamespot]"><input type="hidden" name="alertAuthor[]" value="1">`;
4488
+ xml += `<input type="hidden" name="alertAuthor[jamespot]"><input type="hidden" ng-model="form.alertAuthor" name="alertAuthor[]" value="1">`;
4490
4489
  }
4491
4490
  }
4492
4491
  else if (view.type === ExtraAppFieldsItemViews.SENDALERTTOSUBSCRIBERS) {
4493
4492
  if (view.value) {
4494
- xml += `<input type="hidden" name="sendAlert[jamespot]"><input type="hidden" name="sendAlert[]" value="1">`;
4493
+ xml += `<input type="hidden" name="sendAlert[jamespot]"><input type="hidden" ng-model="form.sendAlert" name="sendAlert[]" value="1">`;
4495
4494
  }
4496
4495
  }
4497
4496
  else {