읽음 안읽음
This commit is contained in:
@@ -31,6 +31,7 @@ export interface AlarmListContent {
|
||||
appNotificationTitle: string;
|
||||
appNotificationContent: string;
|
||||
appNotificationLink: string;
|
||||
appNotificationAllowed: boolean;
|
||||
};
|
||||
|
||||
export interface AppAlarmFindParams {
|
||||
|
||||
@@ -16,6 +16,7 @@ export interface AlarmItemProps {
|
||||
appNotificationTitle?: string;
|
||||
appNotificationContent?: string;
|
||||
appNotificationLink?: string;
|
||||
appNotificationAllowed?: boolean;
|
||||
setAlarmRoutesOn: (alarmRoutesOn: boolean) => void;
|
||||
setAlarmOptions: (alarmOptions: AlarmLinkOptions) => void;
|
||||
};
|
||||
@@ -27,6 +28,7 @@ export const AlarmItem = ({
|
||||
appNotificationTitle,
|
||||
appNotificationContent,
|
||||
appNotificationLink,
|
||||
appNotificationAllowed,
|
||||
setAlarmRoutesOn,
|
||||
setAlarmOptions
|
||||
}: AlarmItemProps) => {
|
||||
@@ -57,7 +59,7 @@ export const AlarmItem = ({
|
||||
};
|
||||
|
||||
const callAppAlarmMark = () => {
|
||||
if(!!userInfo.usrid && !!appNotificationSequence){
|
||||
if(!!userInfo.usrid && !!appNotificationSequence && !appNotificationAllowed){
|
||||
let params: AppAlarmMarkParams = {
|
||||
appNotificationSequence: appNotificationSequence,
|
||||
usrid: userInfo.usrid
|
||||
|
||||
@@ -108,6 +108,7 @@ export const AlarmList = ({
|
||||
appNotificationTitle={ resultList[i]?.appNotificationTitle }
|
||||
appNotificationContent={ resultList[i]?.appNotificationContent }
|
||||
appNotificationLink={ resultList[i]?.appNotificationLink }
|
||||
appNotificationAllowed={ resultList[i]?.appNotificationAllowed }
|
||||
setAlarmRoutesOn={ setAlarmRoutesOn }
|
||||
setAlarmOptions={ setAlarmOptions }
|
||||
></AlarmItem>
|
||||
|
||||
Reference in New Issue
Block a user