Remove dev condition for relatedTo component
This commit is contained in:
parent
de6c91cbab
commit
130691b60a
|
@ -11,7 +11,7 @@ import {HelperFunctions} from "../../utils/HelperFunctions.class";
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'relatedTo',
|
selector: 'relatedTo',
|
||||||
template: `
|
template: `
|
||||||
<div class="sideInfoTitle">
|
<div *ngIf="(gateways && gateways.length > 0) || (otherCommunities && otherCommunities.length > 0)" class="sideInfoTitle">
|
||||||
<span>Communities</span>
|
<span>Communities</span>
|
||||||
</div>
|
</div>
|
||||||
<!-- If there are any communities with dashboard -->
|
<!-- If there are any communities with dashboard -->
|
||||||
|
@ -169,7 +169,6 @@ export class RelatedToComponent implements OnInit {
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
this.contexts.sort(this.compare);
|
this.contexts.sort(this.compare);
|
||||||
if(properties.environment === "development") {
|
|
||||||
let index = 0;
|
let index = 0;
|
||||||
this.contexts.forEach( context => {
|
this.contexts.forEach( context => {
|
||||||
if(context.idContext) {
|
if(context.idContext) {
|
||||||
|
@ -215,7 +214,6 @@ export class RelatedToComponent implements OnInit {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
ngOnDestroy() {
|
ngOnDestroy() {
|
||||||
this.subscriptions.forEach(subscription => {
|
this.subscriptions.forEach(subscription => {
|
||||||
|
|
Loading…
Reference in New Issue