diff --git a/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/main-contents/organization.component.html b/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/main-contents/organization.component.html index da22b709..a7a3b0a3 100644 --- a/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/main-contents/organization.component.html +++ b/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/main-contents/organization.component.html @@ -6,26 +6,23 @@

- - - {{ 'common.messages.searching' | translate }} ... - - + + {{ 'common.messages.searching' | translate }} ... + + + {{ selectedDepartment$ | async | ucapTranslate: 'name' }} - - - - {{ 'common.searchResult' | translate - }}({{ departmentUserInfoList.length }} - {{ 'common.units.persons' | translate }}) - + + + {{ 'common.searchResult' | translate + }}({{ departmentUserInfoList.length }} + {{ 'common.units.persons' | translate }}) + +

diff --git a/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/main-contents/organization.component.scss b/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/main-contents/organization.component.scss index 51ce649c..bd800ac5 100644 --- a/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/main-contents/organization.component.scss +++ b/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/main-contents/organization.component.scss @@ -53,8 +53,14 @@ justify-content: center; align-items: center; flex: 0 0 30px; + cursor: unset; + i { } + + &:hover { + opacity: 1 !important; + } } .organization-info { display: flex; @@ -62,6 +68,10 @@ flex-flow: row; overflow: hidden; align-items: center; + + .person-count { + margin-left: 5px; + } } .organization-name { font-size: 0.94rem; @@ -161,6 +171,10 @@ .select-user-title { font-size: 0.9em; font-weight: 600; + + span { + margin-left: 5px; + } } ::ng-deep .organization-accordion { diff --git a/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/main-contents/organization.component.ts b/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/main-contents/organization.component.ts index ba4aa9a5..b0e2539d 100644 --- a/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/main-contents/organization.component.ts +++ b/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/main-contents/organization.component.ts @@ -125,6 +125,7 @@ export class OrganizationComponent implements OnInit, OnDestroy { departmentUserInfoListSubscription: Subscription; searchDepartmentUserInfoListSubscription: Subscription; + tmpUserList: UserInfoSS[] = []; // Backup data to use when canceling the search. departmentUserInfoList: UserInfoSS[] = []; originDepartmentUserInfoList: UserInfoSS[] = []; @@ -182,6 +183,11 @@ export class OrganizationComponent implements OnInit, OnDestroy { .pipe(select(AppStore.MessengerSelector.QuerySelector.isSearch)) .subscribe(isSearch => { this.isSearch = isSearch; + + if (!isSearch && this.tmpUserList.length > 0) { + this.departmentUserInfoList = this.tmpUserList.slice(); + this.tmpUserList = []; + } }); this.selectedDepartmentProcessing$ = this.store.pipe( @@ -218,6 +224,12 @@ export class OrganizationComponent implements OnInit, OnDestroy { ) .subscribe(list => { if (!!this.isSearch) { + if ( + this.departmentUserInfoList.length > 0 && + this.tmpUserList.length === 0 + ) { + this.tmpUserList = this.departmentUserInfoList.slice(); + } this.departmentUserInfoList = list; this.originDepartmentUserInfoList = list; diff --git a/projects/ucap-webmessenger-ui-organization/src/lib/components/detail-table.component.html b/projects/ucap-webmessenger-ui-organization/src/lib/components/detail-table.component.html index 196cb752..ed6ac2f4 100644 --- a/projects/ucap-webmessenger-ui-organization/src/lib/components/detail-table.component.html +++ b/projects/ucap-webmessenger-ui-organization/src/lib/components/detail-table.component.html @@ -1,4 +1,7 @@ - +