-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
47 additions
and
2 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
ui/src/app/metadata/configuration/component/metadata-configuration.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
ui/src/app/metadata/configuration/component/metadata-header.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<div class="card enabled-status"> | ||
<div class="card-body"> | ||
<h2 class="card-title version-title">Version 5</h2> | ||
<p class="card-text version-details"> | ||
Saved <span class="save-date">Mmm DD, YYYY</span>, by <span class="author">Username</span> | ||
</p> | ||
<p class="card-text"> | ||
<span class="badge badge-primary" *ngIf="isEnabled" translate="value.enabled">Enabled</span> | ||
<span class="badge badge-danger" *ngIf="!isEnabled" translate="value.disabled">Disabled</span> | ||
<span class="badge badge-primary">Current</span> | ||
</p> | ||
</div> | ||
</div> |
Empty file.
19 changes: 19 additions & 0 deletions
19
ui/src/app/metadata/configuration/component/metadata-header.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { Component, Input } from '@angular/core'; | ||
import { Metadata, MetadataTypes } from '../../domain/domain.type'; | ||
import { MetadataResolver } from '../../domain/model'; | ||
|
||
@Component({ | ||
selector: 'metadata-header', | ||
templateUrl: './metadata-header.component.html', | ||
styleUrls: [] | ||
}) | ||
|
||
export class MetadataHeaderComponent { | ||
@Input() metadata: Metadata; | ||
constructor() {} | ||
|
||
get isEnabled(): boolean { | ||
return this.metadata ? ('serviceEnabled' in this.metadata) ? this.metadata.serviceEnabled : this.metadata.enabled : false; | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
ui/src/app/metadata/configuration/container/metadata-options.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
<div class="container"> | ||
<metadata-header [metadata]="model$ | async"></metadata-header> | ||
<div class="px-3 my-3 d-flex justify-content-between"> | ||
<button class="btn btn-link">Version History</button> | ||
<div class="btn-group"> | ||
<button class="btn" routerLinkActive="btn-primary">Options</button> | ||
<button class="btn" routerLinkActive="btn-primary">XML</button> | ||
</div> | ||
</div> | ||
<metadata-configuration [configuration]="configuration$ | async"></metadata-configuration> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters