通知管理
This commit is contained in:
parent
a2c5c1ea6f
commit
11b92ac52b
|
@ -30,7 +30,6 @@ function NoticeManager(props){
|
|||
|
||||
console.log('settingTypes',settingTypes);
|
||||
console.log('userNotification',userNotification,'userEmail',userEmail);
|
||||
console.log(userNotification.ins)
|
||||
return(
|
||||
<div className="notice01">
|
||||
<div className="sshHead">
|
||||
|
@ -43,12 +42,12 @@ function NoticeManager(props){
|
|||
item.type_name && <div>
|
||||
<div className="manager-cont-top">{item.type_name}</div>
|
||||
{item.settings.map((i, k) => {
|
||||
console.log(userNotification.get(item.type.substring(item.type.indexOf("::")+2)+"::"+i.key));
|
||||
// console.log(userEmail[item.type.substring(item.type.indexOf("::")+2)+"::"+i.key]);
|
||||
return (
|
||||
<div className="manager-cont">
|
||||
<div className="manager-cont-title">{i.name}</div>
|
||||
<Checkbox defaultChecked='true' disabled = {i.notification_disabled}>站内信</Checkbox>
|
||||
<Checkbox disabled = {i.email_disabled}>邮件</Checkbox>
|
||||
<Checkbox defaultChecked='true' defaultChecked = {i.notification_disabled} checked={userNotification[item.type.substring(item.type.indexOf("::")+2)+"::"+i.key]}>站内信</Checkbox>
|
||||
<Checkbox disabled = {i.email_disabled} defaultChecked={userEmail[item.type.substring(item.type.indexOf("::")+2)+"::"+i.key]}>邮件</Checkbox>
|
||||
</div>
|
||||
)
|
||||
})}
|
||||
|
|
Loading…
Reference in New Issue