@takagaki/cortex-decisions-viewer 0.12.91 → 0.12.92

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.
Files changed (2) hide show
  1. package/dist/render.js +3 -3
  2. package/package.json +1 -1
package/dist/render.js CHANGED
@@ -7923,7 +7923,6 @@ ${calendarAddUrl.toString()}
7923
7923
  ADMIN_DECIDED: { text: "管理者が決めています", final: true },
7924
7924
  FORBIDDEN: { text: "この案件のメンバーだけが決められます", final: true },
7925
7925
  ROLE_FORBIDDEN: { text: "この案件のメンバーだけが決められます", final: true },
7926
- EMAIL_ID: { text: "メールの ID はご本人が決めます", final: true },
7927
7926
  TENANT_MISMATCH: { text: "別の組織の人です。管理者に頼んでください", final: true },
7928
7927
  LINKED_TO_OTHER: { text: "ほかの人に結ばれています。管理者に頼んでください", final: true },
7929
7928
  DENIED_FIRST: { text: "先に「別人」と決まっています。管理者に頼んでください", final: true },
@@ -7936,7 +7935,7 @@ ${calendarAddUrl.toString()}
7936
7935
  /**
7937
7936
  * [同じ人です][別人です]を intake の identity-decide を呼ぶボタンにする(#699 F7b)。
7938
7937
  * 押した後はカードの中でその場で「記録しました(翌晩から反映)」に置き換える。
7939
- * SUBJECT_UNRESOLVED(ポータルが 1 人に決められない)は今の指示文のリンクに戻す
7938
+ * SUBJECT_UNRESOLVED(ポータルが 1 人に決められない)と EMAIL_ID(メールを含む ID)は今の指示文のリンクに戻す
7940
7939
  */
7941
7940
  function ipDecideActions(rec, sectionName, one, typed) {
7942
7941
  var claimKey = one.claim_key;
@@ -7963,7 +7962,8 @@ ${calendarAddUrl.toString()}
7963
7962
  return;
7964
7963
  }
7965
7964
  var code = typeof j.code === "string" ? j.code : "";
7966
- if (code === "SUBJECT_UNRESOLVED") {
7965
+ // 主語が 1 人に決まらない・メールを含む ID は、ここでは決められない=今の指示文のリンクに戻す
7966
+ if (code === "SUBJECT_UNRESOLVED" || code === "EMAIL_ID") {
7967
7967
  box.className = "ip-actions";
7968
7968
  while (box.firstChild) box.removeChild(box.firstChild);
7969
7969
  ipAiChoices(rec, sectionName, one, typed).forEach(function (n) { box.appendChild(n); });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@takagaki/cortex-decisions-viewer",
3
- "version": "0.12.91",
3
+ "version": "0.12.92",
4
4
  "description": "Cortexの意思決定記録(Decisions/*.md)を静的サイトにビルドして閲覧する。各レコードに「Edit on GitHub」リンクを付与する。",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,