summaryrefslogtreecommitdiffstats
path: root/usecaseui-portal/src/app/shared/components/details/details.component.ts
diff options
context:
space:
mode:
authorChuyi Guo <guochuyi@chinamobile.com>2019-08-23 07:35:40 +0000
committerGerrit Code Review <gerrit@onap.org>2019-08-23 07:35:40 +0000
commitc12c0b1ef71d72a2af275b0bf7d8390c2e226e19 (patch)
tree407aa0aca84a943301ce536e01807e7b6f743e18 /usecaseui-portal/src/app/shared/components/details/details.component.ts
parentb3a6a997080331333b046346cbb6f2050e4d86e1 (diff)
parent4e11ad92dbc929de190a6c211457bebc88636acd (diff)
Merge "refactor: change the position of animates.ts to utils"
Diffstat (limited to 'usecaseui-portal/src/app/shared/components/details/details.component.ts')
-rw-r--r--usecaseui-portal/src/app/shared/components/details/details.component.ts18
1 files changed, 9 insertions, 9 deletions
diff --git a/usecaseui-portal/src/app/shared/components/details/details.component.ts b/usecaseui-portal/src/app/shared/components/details/details.component.ts
index dea6caaa..1de80a94 100644
--- a/usecaseui-portal/src/app/shared/components/details/details.component.ts
+++ b/usecaseui-portal/src/app/shared/components/details/details.component.ts
@@ -14,23 +14,23 @@
limitations under the License.
*/
import { Component, OnInit, Input } from '@angular/core';
-import { slideUpDown } from '../../../animates';
+import { slideUpDown } from '../../utils/animates';
import { HomesService } from '../../../core/services/homes.service';
@Component({
selector: 'app-details',
templateUrl: './details.component.html',
styleUrls: ['./details.component.less'],
- animations: [ slideUpDown ]
+ animations: [slideUpDown]
})
export class DetailsComponent implements OnInit {
- constructor(private myhttp:HomesService) { }
+ constructor(private myhttp: HomesService) { }
ngOnInit() {
}
- ngOnChanges(changes){
+ ngOnChanges(changes) {
this.getAlarmDetailData(this.detailId);
}
@@ -38,9 +38,9 @@ export class DetailsComponent implements OnInit {
};
dataillistdata: any = [];
- getAlarmDetailData(id){
- if(id){
- this.myhttp.getAlarmDetailData(id).subscribe((data)=>{
+ getAlarmDetailData(id) {
+ if (id) {
+ this.myhttp.getAlarmDetailData(id).subscribe((data) => {
this.datailheaderdata = data.alarmsHeader;
this.dataillistdata = data.list;
})
@@ -50,9 +50,9 @@ export class DetailsComponent implements OnInit {
// detail Show
moredetailShow = false;
@Input() detailId;
-
+
state = 'up'
- slideUpDown(){
+ slideUpDown() {
this.moredetailShow = !this.moredetailShow;
this.state = this.state === 'up' ? 'down' : 'up';
}