jamespot-front-business 1.1.87 → 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
@@ -723,7 +723,10 @@ const initialState$j = {
723
723
  const fetchComments = toolkit.createAsyncThunk('commentList/fetchCommentList', (params, { extra, rejectWithValue, dispatch }) => __awaiter(void 0, void 0, void 0, function* () {
724
724
  var _a;
725
725
  try {
726
- const res = yield extra.jApi.article.getComments(params, { format: 'raw-list', formatExtend: ['socialActions'] });
726
+ const res = yield extra.jApi.article.getComments(params, {
727
+ format: 'raw-list',
728
+ formatExtension: ['actions'],
729
+ });
727
730
  return { idArticle: params.idArticle, list: res.result };
728
731
  }
729
732
  catch (error) {
@@ -4189,19 +4192,18 @@ function renderWidget(fieldType, fieldProperties) {
4189
4192
  return '';
4190
4193
  const isMultiple = optionEditor.value.canSelectMultiple;
4191
4194
  const options = optionEditor.value.propertyOptions;
4192
- const hasDefaultValue = optionEditor.value.defaultSelectOption;
4193
- const defaultValue = optionEditor.value.defaultSelectOptionValue.value;
4194
- const userCanModifiyByComment = optionEditor.value.userCanModifiyByComment;
4195
+ const hasDefaultValue = optionEditor.value.defaultSelectOption && optionEditor.value.defaultSelectOptionValue.value;
4196
+ const userCanModifyByComment = optionEditor.value.userCanModifyByComment;
4195
4197
  return `<widget form="select" ${isMultiple ? 'multiple="1"' : ''}>
4196
4198
  <options>
4197
4199
  ${options
4198
4200
  .map((option) => `<option value="${option.value}" label="${option.title}"></option>`)
4199
4201
  .join('')}
4200
4202
  </options>
4201
- ${hasDefaultValue || userCanModifiyByComment
4203
+ ${hasDefaultValue || userCanModifyByComment
4202
4204
  ? `<params>
4203
- ${hasDefaultValue ? `<param key="defaultValue" value="${defaultValue}"/>` : ''}
4204
- ${userCanModifiyByComment ? `<param key="explain" value="1"/>` : ''}
4205
+ ${hasDefaultValue ? `<param key="defaultValue" value="${optionEditor.value.defaultSelectOptionValue.value}"/>` : ''}
4206
+ ${userCanModifyByComment ? `<param key="explain" value="1"/>` : ''}
4205
4207
  </params>`
4206
4208
  : ''}
4207
4209
  </widget>`;
@@ -4491,12 +4493,12 @@ function renderDisplayAttr(fieldId, view) {
4491
4493
  }
4492
4494
  else if (view.type === ExtraAppFieldsItemViews.RECEIVEACOPY) {
4493
4495
  if (view.value) {
4494
- 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">`;
4495
4497
  }
4496
4498
  }
4497
4499
  else if (view.type === ExtraAppFieldsItemViews.SENDALERTTOSUBSCRIBERS) {
4498
4500
  if (view.value) {
4499
- 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">`;
4500
4502
  }
4501
4503
  }
4502
4504
  else {