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