From b8a41d7b447d2e6cb9ea2a3fb19f8f8fe2c1e01b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B0=B4=E6=9C=AC=20=E7=A5=90=E5=B8=8C?= Date: Thu, 31 Aug 2023 08:55:57 +0000 Subject: [PATCH] =?UTF-8?q?Merged=20PR=20370:=20=E4=BF=AE=E6=AD=A3?= =?UTF-8?q?=E3=81=AE=E5=AE=9F=E6=96=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## 概要 [Task2537: 修正の実施](https://paruru.nds-tyo.co.jp:8443/tfs/ReciproCollection/fa4924a4-d079-4fab-9fb5-a9a11eb205f0/_workitems/edit/2537) - 元PBI or タスクへのリンク(内容・目的などはそちらにあるはず) - 何をどう変更したか、追加したライブラリなど 子アカウントの「Issue」ボタンは親アカウントのみ表示されるよう修正 (第1階層→第5階層までたどり、「order history」ボタンを押下時、「Issue」ボタンが表示されていた) - このPull Requestでの対象/対象外 - 影響範囲(他の機能にも影響があるか) 特になし ## レビューポイント - 特にレビューしてほしい箇所 ボタン表示制御のコード - 軽微なものや自明なものは記載不要 - 修正範囲が大きい場合などに記載 - 全体的にや仕様を満たしているか等は本当に必要な時のみ記載 ## UIの変更 - Before/Afterのスクショなど - スクショ置き場 ## 動作確認状況 - ローカルで確認 ## 補足 - 相談、参考資料などがあれば --- .../src/pages/LicensePage/licenseOrderHistory.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/dictation_client/src/pages/LicensePage/licenseOrderHistory.tsx b/dictation_client/src/pages/LicensePage/licenseOrderHistory.tsx index b056c23..622b418 100644 --- a/dictation_client/src/pages/LicensePage/licenseOrderHistory.tsx +++ b/dictation_client/src/pages/LicensePage/licenseOrderHistory.tsx @@ -27,6 +27,7 @@ import { cancelIssueAsync, } from "features/license/licenseOrderHistory"; import { selectSelectedRow } from "features/license/partnerLicense"; +import { isApproveTier } from "features/auth/utils"; import undo from "../../assets/images/undo.svg"; import history from "../../assets/images/history.svg"; import progress_activit from "../../assets/images/progress_activit.svg"; @@ -282,7 +283,12 @@ export const LicenseOrderHistory: React.FC = ( {/* eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions */} 1 && + isApproveTier([ + (selectedRow.tier - 1).toString(), + ]) ? styles.isActive : "" }`}