This commit is contained in:
richard-loafle 2020-02-11 18:07:48 +09:00
commit e34a0bbb93
10 changed files with 106 additions and 72 deletions

View File

@ -77,14 +77,14 @@
width: 100%; width: 100%;
.mat-tab-header { .mat-tab-header {
width: 160px; width: 170px;
flex-flow: column; flex-flow: column;
border-right: 1px solid #dddddd; border-right: 1px solid #dddddd;
.mat-tab-label-container { .mat-tab-label-container {
.mat-tab-list { .mat-tab-list {
.mat-tab-labels { .mat-tab-labels {
border-bottom: 0; border-bottom: 0;
padding-right: 10px; //padding-right: 10px;
.mat-tab-label { .mat-tab-label {
padding: 0 10px; padding: 0 10px;
} }

View File

@ -13,7 +13,7 @@
<mat-card-content> <mat-card-content>
<div fxFlex class="setting-tab"> <div fxFlex class="setting-tab">
<mat-tab-group animationDuration="0ms"> <mat-tab-group animationDuration="0ms">
<mat-tab> <mat-tab class="setting">
<ng-template mat-tab-label> <ng-template mat-tab-label>
<span class="mdi mdi-settings"></span> <span class="mdi mdi-settings"></span>
{{ 'settings.typeGenernal' | translate }} {{ 'settings.typeGenernal' | translate }}
@ -36,7 +36,7 @@
class="setting-category" class="setting-category"
></ucap-settings-privacy> ></ucap-settings-privacy>
</mat-tab> --> </mat-tab> -->
<mat-tab> <mat-tab class="setting">
<ng-template mat-tab-label> <ng-template mat-tab-label>
<span class="mdi mdi-bell"></span> <span class="mdi mdi-bell"></span>
{{ 'settings.typeNotification' | translate }} {{ 'settings.typeNotification' | translate }}
@ -72,7 +72,7 @@
</ng-template> </ng-template>
<ucap-settings-call class="setting-category"></ucap-settings-call> <ucap-settings-call class="setting-category"></ucap-settings-call>
</mat-tab> --> </mat-tab> -->
<mat-tab> <mat-tab class="setting">
<ng-template mat-tab-label> <ng-template mat-tab-label>
<span class="mdi mdi-chat"></span> <span class="mdi mdi-chat"></span>
{{ 'settings.typeChat' | translate }} {{ 'settings.typeChat' | translate }}

View File

@ -1,4 +1,4 @@
::ng-deep .setting-frame { .setting-frame {
padding: 16px; padding: 16px;
height: 100%; height: 100%;
min-width: 500px; min-width: 500px;
@ -33,23 +33,11 @@
width: 100%; width: 100%;
height: 100%; height: 100%;
.mat-tab-group { .mat-tab-group {
display: flex;
flex-direction: row; flex-direction: row;
.mat-tab-header { position: relative;
width: 160px; height: 100%;
.mat-tab-labels { width: 100%;
flex-direction: column;
.mat-tab-label {
padding: 0 10px;
align-content: flex-start;
text-align: left;
align-items: center;
justify-content: flex-start;
}
}
.mat-ink-bar {
display: none;
}
}
} }
} }
} }
@ -65,21 +53,46 @@
} }
} }
::ng-deep .setting-tab { .setting-category {
.mat-tab-group { }
position: relative;
height: 100%;
width: 100%;
::ng-deep .setting-tab {
.mat-tab-header {
border: none !important;
.mat-tab-labels {
flex-direction: column;
border: none;
.mat-tab-label {
padding: 0 10px;
align-content: flex-start;
text-align: left;
align-items: center;
justify-content: flex-start;
}
}
.mat-ink-bar {
display: none;
}
}
.mat-tab-body-wrapper {
flex: 1 1 auto;
border-left: 1px solid #dddddd;
}
}
/*::ng-deep .setting-tab {
.mat-tab-group {
.mat-tab-header { .mat-tab-header {
width: 160px; width: 160px;
flex-flow: column; flex-flow: column;
flex: 0 0 auto;
border-right: 1px solid #dddddd; border-right: 1px solid #dddddd;
.mat-tab-label-container { .mat-tab-label-container {
.mat-tab-list { .mat-tab-list {
.mat-tab-labels { .mat-tab-labels {
border-bottom: 0; border-bottom: 0;
padding-right: 10px; //padding-right: 10px;
.mat-tab-label { .mat-tab-label {
padding: 0 10px; padding: 0 10px;
} }
@ -120,3 +133,4 @@
} }
} }
} }
*/

View File

@ -62,7 +62,7 @@
::ng-deep .mat-tab-labels { ::ng-deep .mat-tab-labels {
display: flex; display: flex;
width: 100%; width: 100%;
border-bottom: 2px solid #dddddd; //border-bottom: 2px solid #dddddd;
flex: 1 1 auto; flex: 1 1 auto;
justify-content: space-around; justify-content: space-around;
} }

View File

@ -661,24 +661,9 @@ export class AppNotificationService {
>(KEY_APP_USER_INFO, environment.customConfig.appKey); >(KEY_APP_USER_INFO, environment.customConfig.appKey);
const modifiedSettings: Settings = clone(appUserInfo.settings); const modifiedSettings: Settings = clone(appUserInfo.settings);
modifiedSettings.notification.method = noti.notificationMethod; // 모바일에서 해당 값만 수정함.
modifiedSettings.notification.method = noti.notificationMethod0;
modifiedSettings.notification.receiveForMobile = modifiedSettings.notification.receiveForMobile =
noti.mobileNotification; noti.mobileNotification;
modifiedSettings.notification.use = noti.receiveNotification;
modifiedSettings.notification.alertExposureTime =
noti.notificationExposureTime;
modifiedSettings.chat.fontFamily = noti.fontFamily;
modifiedSettings.chat.fontSize = noti.fontSize;
modifiedSettings.presence.absenceTime = noti.absenceTime;
modifiedSettings.general.timezone = noti.timeZone;
modifiedSettings.general.locale = noti.menuLanguage;
modifiedSettings.general.hrInfoLocale =
noti.hrInformationLanguage;
appUserInfo.settings = modifiedSettings; appUserInfo.settings = modifiedSettings;
this.localStorageService.encSet<AppUserInfo>( this.localStorageService.encSet<AppUserInfo>(

View File

@ -178,10 +178,6 @@ export class MessagesComponent implements OnInit, OnDestroy {
this.loginRes = loginRes; this.loginRes = loginRes;
}); });
this.roomInfoSubscription = this.roomInfo$.subscribe(roomInfo => { this.roomInfoSubscription = this.roomInfo$.subscribe(roomInfo => {
if (!this.roomInfo || this.roomInfo.roomSeq !== roomInfo.roomSeq) {
this.baseEventSeq = 0;
}
this.roomInfo = roomInfo; this.roomInfo = roomInfo;
this.showMore = false; this.showMore = false;
@ -196,7 +192,11 @@ export class MessagesComponent implements OnInit, OnDestroy {
this.firstCheckReadHere = true; this.firstCheckReadHere = true;
/** [E] initializing by changed room */ /** [E] initializing by changed room */
if (!this.roomInfo || this.roomInfo.roomSeq !== roomInfo.roomSeq) { if (
!this.roomInfo ||
(!!this.roomInfo && this.roomInfo.roomSeq !== roomInfo.roomSeq)
) {
this.baseEventSeq = 0;
this.initEventMore(); this.initEventMore();
} }
}); });

View File

@ -59,6 +59,7 @@
<span class="number">{{ userInfo.employeeNum }}</span> <span class="number">{{ userInfo.employeeNum }}</span>
</mat-card-title> </mat-card-title>
<mat-card-subtitle> <mat-card-subtitle>
<span class="company">{{ userInfo.companyName | ucapStringEmptycheck }}</span>
<span class="deptName">{{ userInfo | ucapTranslate: 'deptName' }}</span> <span class="deptName">{{ userInfo | ucapTranslate: 'deptName' }}</span>
<span class="grade">{{ userInfo | ucapTranslate: 'grade' }}</span> <span class="grade">{{ userInfo | ucapTranslate: 'grade' }}</span>
</mat-card-subtitle> </mat-card-subtitle>
@ -177,6 +178,14 @@
<dt class="division">{{ 'profile.fieldCompany' | translate }}</dt> <dt class="division">{{ 'profile.fieldCompany' | translate }}</dt>
<dd>{{ userInfo.companyName | ucapStringEmptycheck }}</dd> <dd>{{ userInfo.companyName | ucapStringEmptycheck }}</dd>
</li> </li>
<li class="deptName">
<dt class="division">{{ 'search.fieldDeptartment' | translate }}</dt>
<dd>{{ userInfo | ucapTranslate: 'deptName' }}</dd>
</li>
<li class="grade">
<dt class="division">{{ 'search.fieldGrade' | translate }}</dt>
<dd>{{ userInfo | ucapTranslate: 'grade' }}</dd>
</li>
<li> <li>
<dt class="division"> <dt class="division">
{{ 'profile.fieldResponsibilities' | translate }} {{ 'profile.fieldResponsibilities' | translate }}

View File

@ -120,9 +120,11 @@ $login-max-height: 800px;
flex-flow: column; flex-flow: column;
span { span {
@include ellipsis(1); @include ellipsis(1);
&.deptName { font-size: 1em;
font-size: 1.2em; margin-bottom: 8px;
line-height: 1.4em; &.company {
font-weight: 600;
font-size: 1.1em;
} }
} }
} }
@ -170,13 +172,15 @@ $login-max-height: 800px;
ul { ul {
display: flex; display: flex;
flex-flow: column; flex-flow: column;
height: calc(100% - 80px);
overflow-y: auto;
li { li {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
height: 30px; height: 26px;
align-items: center; align-items: center;
flex-flow: row; flex-flow: row;
margin-bottom: 14px; margin-bottom: 10px;
dt { dt {
width: 100px; width: 100px;
font-weight: 800; font-weight: 800;
@ -224,16 +228,16 @@ $login-max-height: 800px;
::ng-deep .userInfo-call { ::ng-deep .userInfo-call {
position: relative; position: relative;
display: flex; display: flex;
flex: 0 0 auto; flex: 0 0 26px;
width: 34px; width: 26x;
height: 34px; height: 26px;
line-height: 34px; line-height: 26px;
justify-content: center; justify-content: center;
justify-items: center; justify-items: center;
.mat-button-wrapper { .mat-button-wrapper {
padding: 0; padding: 0;
width: 20px; width: 18px;
height: 20px; height: 18px;
justify-content: center; justify-content: center;
text-align: center; text-align: center;
svg { svg {
@ -252,8 +256,9 @@ $login-max-height: 800px;
&.mat-mini-fab { &.mat-mini-fab {
position: relative; position: relative;
display: flex; display: flex;
width: 40px; width: 36px;
height: 40px; height: 36px;
flex: 0 0 36px;
//line-height: 40px; //line-height: 40px;
.mat-button-wrapper { .mat-button-wrapper {
padding: 0; padding: 0;

View File

@ -1,4 +1,4 @@
<div> <div class="set-general">
<mat-list> <mat-list>
<h1 mat-subheader>{{ 'settings.genernal.theme' | translate }}</h1> <h1 mat-subheader>{{ 'settings.genernal.theme' | translate }}</h1>
<!--<ul class="theme-list"> <!--<ul class="theme-list">

View File

@ -41,15 +41,31 @@
} }
} }
.theme-item { /*
width: 140px; .mat-list-item {
height: 98px; margin-bottom: 10px;
margin-right: 10px;
border: 1px solid #dddddd;
background-size: 100% auto;
background-repeat: no-repeat;
opacity: 0.7;
} }
.set-general {
.theme-select {
position: relative;
width: 100%;
height: 160px;
.theme-list {
position: relative;
height: 160px;
.theme-item {
width: 140px;
height: 98px;
margin-right: 10px;
border: 1px solid #dddddd;
background-size: 100% auto;
background-repeat: no-repeat;
opacity: 0.7;
}
}
}
}
*/
.theme-box { .theme-box {
width: 140px; width: 140px;
height: 98px; height: 98px;
@ -70,3 +86,8 @@
display: flex; display: flex;
flex-direction: row; flex-direction: row;
} }
.mat-divider {
position: relative;
padding-top: 10px;
}