This commit is contained in:
khk 2020-01-06 11:17:41 +09:00
commit 5ad4d69d38
7 changed files with 18 additions and 33 deletions

View File

@ -376,13 +376,9 @@ export class GroupComponent implements OnInit, OnDestroy {
} }
/** 수정불가 그룹 핸들링. */ /** 수정불가 그룹 핸들링. */
if ( if (!!group && !!environment.productConfig.CommonSetting.fixedGroupSeqs) {
!!group &&
!!environment.customConfig &&
!!environment.customConfig.fixedGroupSeqs
) {
const fixedGroupSeqs: number[] = const fixedGroupSeqs: number[] =
environment.customConfig.fixedGroupSeqs; environment.productConfig.CommonSetting.fixedGroupSeqs;
if (!!fixedGroupSeqs && fixedGroupSeqs.length > 0) { if (!!fixedGroupSeqs && fixedGroupSeqs.length > 0) {
if (fixedGroupSeqs.indexOf(group.seq) > -1) { if (fixedGroupSeqs.indexOf(group.seq) > -1) {
return false; return false;
@ -442,12 +438,9 @@ export class GroupComponent implements OnInit, OnDestroy {
} }
/** 수정불가 그룹 핸들링. */ /** 수정불가 그룹 핸들링. */
if ( if (!!group && !!environment.productConfig.CommonSetting.fixedGroupSeqs) {
!!group && const fixedGroupSeqs: number[] =
!!environment.customConfig && environment.productConfig.CommonSetting.fixedGroupSeqs;
!!environment.customConfig.fixedGroupSeqs
) {
const fixedGroupSeqs: number[] = environment.customConfig.fixedGroupSeqs;
if (!!fixedGroupSeqs && fixedGroupSeqs.length > 0) { if (!!fixedGroupSeqs && fixedGroupSeqs.length > 0) {
if (fixedGroupSeqs.indexOf(group.seq) > -1) { if (fixedGroupSeqs.indexOf(group.seq) > -1) {
if (menuType === 'REMOVE_FROM_GROUP' || menuType === 'MOVE_BUDDY') { if (menuType === 'REMOVE_FROM_GROUP' || menuType === 'MOVE_BUDDY') {

View File

@ -71,11 +71,9 @@ export class SelectGroupDialogComponent implements OnInit {
map(([buddyList, groupList]) => { map(([buddyList, groupList]) => {
/** 수정불가 그룹 */ /** 수정불가 그룹 */
let fixedGroupSeqs: number[]; let fixedGroupSeqs: number[];
if ( if (!!environment.productConfig.CommonSetting.fixedGroupSeqs) {
!!environment.customConfig && fixedGroupSeqs =
!!environment.customConfig.fixedGroupSeqs environment.productConfig.CommonSetting.fixedGroupSeqs;
) {
fixedGroupSeqs = environment.customConfig.fixedGroupSeqs;
} }
const groupBuddyList: { const groupBuddyList: {

View File

@ -68,6 +68,7 @@ export const environment: Environment = {
useMyDeptGroup: true, useMyDeptGroup: true,
myDeptGroupSeq: -5, myDeptGroupSeq: -5,
fixedGroupSeqs: [-5],
useTimerRoom: false, useTimerRoom: false,
timerRoomDefaultInterval: 24 * 60 * 60, timerRoomDefaultInterval: 24 * 60 * 60,
@ -89,10 +90,7 @@ export const environment: Environment = {
userKey: 'DaesangSSOProject', userKey: 'DaesangSSOProject',
isBase64: 'N' isBase64: 'N'
}, },
appKey: '!@#$DAESANG%^&*', appKey: '!@#$DAESANG%^&*'
/** 삭제,수정 불가 그룹 Seqs:number[] */
fixedGroupSeqs: [-5]
}, },
commonApiModuleConfig: { commonApiModuleConfig: {

View File

@ -68,6 +68,7 @@ export const environment: Environment = {
useMyDeptGroup: true, useMyDeptGroup: true,
myDeptGroupSeq: -5, myDeptGroupSeq: -5,
fixedGroupSeqs: [-5],
useTimerRoom: false, useTimerRoom: false,
timerRoomDefaultInterval: 24 * 60 * 60, timerRoomDefaultInterval: 24 * 60 * 60,
@ -89,10 +90,7 @@ export const environment: Environment = {
userKey: 'DaesangSSOProject', userKey: 'DaesangSSOProject',
isBase64: 'N' isBase64: 'N'
}, },
appKey: '!@#$DAESANG%^&*', appKey: '!@#$DAESANG%^&*'
/** 삭제,수정 불가 그룹 Seqs:number[] */
fixedGroupSeqs: [-5]
}, },
commonApiModuleConfig: { commonApiModuleConfig: {

View File

@ -68,6 +68,7 @@ export const environment: Environment = {
useMyDeptGroup: false, useMyDeptGroup: false,
myDeptGroupSeq: -999, myDeptGroupSeq: -999,
fixedGroupSeqs: [],
useTimerRoom: true, useTimerRoom: true,
timerRoomDefaultInterval: 24 * 60 * 60, timerRoomDefaultInterval: 24 * 60 * 60,
@ -85,10 +86,7 @@ export const environment: Environment = {
}, },
customConfig: { customConfig: {
appKey: '!@#$DAESANG%^&*', appKey: '!@#$DAESANG%^&*'
/** 삭제,수정 불가 그룹 Seqs:number[] */
fixedGroupSeqs: []
}, },
commonApiModuleConfig: { commonApiModuleConfig: {

View File

@ -68,6 +68,7 @@ export const environment: Environment = {
useMyDeptGroup: false, useMyDeptGroup: false,
myDeptGroupSeq: -999, myDeptGroupSeq: -999,
fixedGroupSeqs: [],
useTimerRoom: true, useTimerRoom: true,
timerRoomDefaultInterval: 24 * 60 * 60, timerRoomDefaultInterval: 24 * 60 * 60,
@ -85,10 +86,7 @@ export const environment: Environment = {
}, },
customConfig: { customConfig: {
appKey: '!@#$DAESANG%^&*', appKey: '!@#$DAESANG%^&*'
/** 삭제,수정 불가 그룹 Seqs:number[] */
fixedGroupSeqs: []
}, },
commonApiModuleConfig: { commonApiModuleConfig: {

View File

@ -71,6 +71,8 @@ export interface Environment {
useMyDeptGroup: boolean; useMyDeptGroup: boolean;
/** 소속부서(내부서) 고정 그룹 SEQ */ /** 소속부서(내부서) 고정 그룹 SEQ */
myDeptGroupSeq: number; myDeptGroupSeq: number;
/** 삭제,수정 불가 그룹 Seqs:number[] */
fixedGroupSeqs: number[];
/** 타이머대화방 사용유무 */ /** 타이머대화방 사용유무 */
useTimerRoom: boolean; useTimerRoom: boolean;