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/cjs.js CHANGED
@@ -725,7 +725,7 @@ const fetchComments = toolkit.createAsyncThunk('commentList/fetchCommentList', (
725
725
  try {
726
726
  const res = yield extra.jApi.article.getComments(params, {
727
727
  format: 'raw-list',
728
- formatExtension: ['socialActions'],
728
+ formatExtension: ['actions'],
729
729
  });
730
730
  return { idArticle: params.idArticle, list: res.result };
731
731
  }
@@ -4192,19 +4192,18 @@ function renderWidget(fieldType, fieldProperties) {
4192
4192
  return '';
4193
4193
  const isMultiple = optionEditor.value.canSelectMultiple;
4194
4194
  const options = optionEditor.value.propertyOptions;
4195
- const hasDefaultValue = optionEditor.value.defaultSelectOption;
4196
- const defaultValue = optionEditor.value.defaultSelectOptionValue.value;
4197
- const userCanModifiyByComment = optionEditor.value.userCanModifiyByComment;
4195
+ const hasDefaultValue = optionEditor.value.defaultSelectOption && optionEditor.value.defaultSelectOptionValue.value;
4196
+ const userCanModifyByComment = optionEditor.value.userCanModifyByComment;
4198
4197
  return `<widget form="select" ${isMultiple ? 'multiple="1"' : ''}>
4199
4198
  <options>
4200
4199
  ${options
4201
4200
  .map((option) => `<option value="${option.value}" label="${option.title}"></option>`)
4202
4201
  .join('')}
4203
4202
  </options>
4204
- ${hasDefaultValue || userCanModifiyByComment
4203
+ ${hasDefaultValue || userCanModifyByComment
4205
4204
  ? `<params>
4206
- ${hasDefaultValue ? `<param key="defaultValue" value="${defaultValue}"/>` : ''}
4207
- ${userCanModifiyByComment ? `<param key="explain" value="1"/>` : ''}
4205
+ ${hasDefaultValue ? `<param key="defaultValue" value="${optionEditor.value.defaultSelectOptionValue.value}"/>` : ''}
4206
+ ${userCanModifyByComment ? `<param key="explain" value="1"/>` : ''}
4208
4207
  </params>`
4209
4208
  : ''}
4210
4209
  </widget>`;
@@ -4494,12 +4493,12 @@ function renderDisplayAttr(fieldId, view) {
4494
4493
  }
4495
4494
  else if (view.type === ExtraAppFieldsItemViews.RECEIVEACOPY) {
4496
4495
  if (view.value) {
4497
- xml += `<input type="hidden" name="alertAuthor[jamespot]"><input type="hidden" name="alertAuthor[]" value="1">`;
4496
+ xml += `<input type="hidden" name="alertAuthor[jamespot]"><input type="hidden" ng-model="form.alertAuthor" name="alertAuthor[]" value="1">`;
4498
4497
  }
4499
4498
  }
4500
4499
  else if (view.type === ExtraAppFieldsItemViews.SENDALERTTOSUBSCRIBERS) {
4501
4500
  if (view.value) {
4502
- xml += `<input type="hidden" name="sendAlert[jamespot]"><input type="hidden" name="sendAlert[]" value="1">`;
4501
+ xml += `<input type="hidden" name="sendAlert[jamespot]"><input type="hidden" ng-model="form.sendAlert" name="sendAlert[]" value="1">`;
4503
4502
  }
4504
4503
  }
4505
4504
  else {