File tree 4 files changed +7
-2
lines changed
components/pages/NotificationCenter 4 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 49
49
"content" : " Für die App <strong>{{app}}</strong> wurden neue Userrollen hinzugefügt welche sie nun assignen können.\n\n Neue Userrollen: {{roles}}"
50
50
},
51
51
"TECHNICAL_USER_CREATION" : {
52
- "title" : " {{appName }} subscription created a new technical user" ,
52
+ "title" : " {{offer }} subscription created a new technical user" ,
53
53
"content" : " This is a default text and will get enhanced later."
54
54
},
55
55
"SERVICE_RELEASE_REQUEST" : {
Original file line number Diff line number Diff line change 49
49
"content" : " New user roles have been added for the app <strong>{{app}}</strong> which you can now assign.\n\n New Roles: {{roles}}"
50
50
},
51
51
"TECHNICAL_USER_CREATION" : {
52
- "title" : " {{appName }} subscription created a new technical user" ,
52
+ "title" : " {{offer }} subscription created a new technical user" ,
53
53
"content" : " This is a default text and will get enhanced later."
54
54
},
55
55
"SERVICE_RELEASE_REQUEST" : {
Original file line number Diff line number Diff line change @@ -92,6 +92,7 @@ const NotificationContent = ({
92
92
const newUrl = item . contentParsed ?. newUrl
93
93
const roles = item . contentParsed ?. Roles
94
94
const userEmail = item . contentParsed ?. UserEmail
95
+ const serviceName = item . contentParsed ?. ServiceName
95
96
96
97
return (
97
98
< >
@@ -112,6 +113,7 @@ const NotificationContent = ({
112
113
newUrl,
113
114
roles : roles ?. join ( ', ' ) ,
114
115
useremail : userEmail ,
116
+ serviceName,
115
117
} }
116
118
>
117
119
< NameLink
@@ -229,6 +231,8 @@ const NotificationConfig = ({ item }: { item: CXNotificationContent }) => {
229
231
return < NotificationContent item = { item } />
230
232
case NotificationType . APP_ROLE_ADDED :
231
233
return < NotificationContent item = { item } />
234
+ case NotificationType . SERVICE_RELEASE_APPROVAL :
235
+ return < NotificationContent item = { item } />
232
236
default :
233
237
return < pre > { JSON . stringify ( item , null , 2 ) } </ pre >
234
238
}
Original file line number Diff line number Diff line change @@ -121,6 +121,7 @@ export interface NotificationContent {
121
121
newUrl ?: string
122
122
Roles ?: string [ ]
123
123
UserEmail ?: string
124
+ ServiceName ?: string
124
125
}
125
126
126
127
export interface CXNotificationContent {
You can’t perform that action at this time.
0 commit comments