mirror of
https://github.com/hwanny1128/HGZero.git
synced 2025-12-06 06:46:24 +00:00
대시보드 프로토타입 개선
• 02-대시보드.html 수정 - 예정 회의 카드 권한 제어 개선 - 생성자/참석자 역할별 클릭 동작 차별화 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
c38cc792d5
commit
bbe73d5344
@ -715,13 +715,22 @@
|
||||
const meetingId = card.dataset.id;
|
||||
const meetingStatus = card.dataset.status;
|
||||
|
||||
// 회의 정보 조회
|
||||
const meeting = SAMPLE_MEETINGS.find(m => m.id == meetingId);
|
||||
const isCreator = meeting.participants.some(p => p.id === currentUser.id && p.role === 'creator');
|
||||
|
||||
// 상태에 따른 이동 처리
|
||||
if (meetingStatus === 'ongoing') {
|
||||
navigateTo('05-회의진행.html');
|
||||
} else if (meetingStatus === 'draft' || meetingStatus === 'complete' || meetingStatus === 'completed') {
|
||||
navigateTo('10-회의록상세조회.html');
|
||||
} else if (meetingStatus === 'scheduled') {
|
||||
navigateTo('03-회의예약.html');
|
||||
// 생성자: 회의예약 화면(수정), 참석자: 시스템 알럿
|
||||
if (isCreator) {
|
||||
navigateTo('03-회의예약.html');
|
||||
} else {
|
||||
alert('아직 회의 시간이 되지 않아 참여하실 수 없습니다');
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user