Skip to content

Commit

Permalink
chore: moved - character outside of details to accomodate for pull re…
Browse files Browse the repository at this point in the history
…quest 169
  • Loading branch information
urz9999 committed Sep 10, 2021
1 parent 12422ff commit ca560af
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/app/components/session/session-card/detail.pipe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ export class DetailPipe implements PipeTransform {
transform(session: Session): string {
switch (session.type) {
case(SessionType.awsIamRoleFederated):
return ' - ' + (session as AwsIamRoleFederatedSession).roleArn.split('role/')[1];
return (session as AwsIamRoleFederatedSession).roleArn.split('role/')[1];
case(SessionType.azure):
return ' - ' + (session as AzureSession).subscriptionId;
return (session as AzureSession).subscriptionId;
case(SessionType.awsIamUser):
return ''; // (session as AwsIamUserSession).sessionName;
case(SessionType.awsSsoRole):
return ' - ' + (session as AwsSsoRoleSession).roleArn.split('role/')[1];
return (session as AwsSsoRoleSession).roleArn.split('role/')[1];
case(SessionType.awsIamRoleChained):
return ' - ' + (session as AwsIamRoleChainedSession).roleArn.split('role/')[1];
return (session as AwsIamRoleChainedSession).roleArn.split('role/')[1];
}
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div class="session-card button-area {{session.type === eSessionType.azure ? 'azr' : 'aws'}} {{session.status === eSessionStatus.active ? 'active' : ''}}">
<span class="region-label {{session.type === eSessionType.azure ? 'azr' : 'aws'}}">{{session.region}}</span>
<div class="information" (click)="switchCredentials()">
<b>{{session.sessionName}}</b>{{ session | detail }}
<b>{{session.sessionName}}</b> - {{ session | detail }}
</div>
<div class="information-profile" (click)="switchCredentials()">
<ng-container *ngIf="session.type !== eSessionType.azure">
Expand Down

0 comments on commit ca560af

Please sign in to comment.