-
Notifications
You must be signed in to change notification settings - Fork 220
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Create ReadOnly user components #7610
feat: Create ReadOnly user components #7610
Conversation
<i className="icon-fw icon-user-following"></i> {t('user_management.user_table.give_read_only_access')} | ||
</button> | ||
); | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
別に管理者自身も ROM にできていいと思うよ
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
管理者も ROM にできるように修正しました。
細かいですが、
Read Only Member でなく Read Only User (日本語では”閲覧ユーザー")として作ってしまったのですが、
Read Only Member (日本語では "閲覧メンバー" )の方がよいでしょうか。
https://redmine.weseek.co.jp/issues/121257 はこの PR のスコープに入ってるの? |
|
<li> | ||
{user.readOnly === true && <RemoveReadOnlyMenuItem user={user} />} | ||
{user.readOnly === false && <GiveReadOnlyButton user={user} />} | ||
</li> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
前バージョンからアップグレードしたシステムだと user.readOnly
が undefined というケースがある。その場合両方のメニューが表示されないことになってしまうので、三項演算子の方がよさそう。
一方 admin は必ず T/F のどちらかが入っているが、可読性を考慮して書式を揃えてもよい。
task:
https://redmine.weseek.co.jp/issues/121033
https://redmine.weseek.co.jp/issues/121257
https://redmine.weseek.co.jp/issues/121034
Screenshot
バッジ