fixing func def.
This commit is contained in:
@@ -121,7 +121,7 @@ export class DetailComponent implements OnInit, AfterViewInit, OnDestroy {
|
|||||||
// -----------------------------------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------------------------------
|
||||||
// @ Private methods
|
// @ Private methods
|
||||||
// -----------------------------------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------------------------------
|
||||||
getAttributeStatusName(attributeStatus: number){
|
getAttributeStatusName(attributeStatus: number): string {
|
||||||
// tslint:disable:no-bitwise
|
// tslint:disable:no-bitwise
|
||||||
|
|
||||||
// from Constants.go
|
// from Constants.go
|
||||||
@@ -138,18 +138,17 @@ export class DetailComponent implements OnInit, AfterViewInit, OnDestroy {
|
|||||||
} else if ((attributeStatus & 2) !== 0){
|
} else if ((attributeStatus & 2) !== 0){
|
||||||
return 'warn'
|
return 'warn'
|
||||||
}
|
}
|
||||||
return
|
return ''
|
||||||
// tslint:enable:no-bitwise
|
// tslint:enable:no-bitwise
|
||||||
}
|
}
|
||||||
|
|
||||||
getAttributeName(attribute_data){
|
getAttributeName(attribute_data): string {
|
||||||
let attribute_metadata = this.metadata[attribute_data.attribute_id]
|
let attribute_metadata = this.metadata[attribute_data.attribute_id]
|
||||||
if(!attribute_metadata){
|
if(!attribute_metadata){
|
||||||
return 'Unknown Attribute Name'
|
return 'Unknown Attribute Name'
|
||||||
} else {
|
} else {
|
||||||
return attribute_metadata.display_name
|
return attribute_metadata.display_name
|
||||||
}
|
}
|
||||||
return
|
|
||||||
}
|
}
|
||||||
getAttributeDescription(attribute_data){
|
getAttributeDescription(attribute_data){
|
||||||
let attribute_metadata = this.metadata[attribute_data.attribute_id]
|
let attribute_metadata = this.metadata[attribute_data.attribute_id]
|
||||||
|
|||||||
Reference in New Issue
Block a user