Skip to content

Commit

Permalink
SHIBUI-1392 Fixed metadata header
Browse files Browse the repository at this point in the history
  • Loading branch information
rmathis committed Aug 8, 2019
1 parent 3ffe379 commit 0283c5f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="card-body">
<h5 class="card-title version-title">
<translate-i18n key="label.saved">Saved</translate-i18n>:&nbsp;
<span class="save-date">{{ version.date | date:'medium' }}</span>
<span class="save-date">{{ version.date | date:DATE_FORMAT }}</span>
<br />
<translate-i18n key="label.by">By</translate-i18n>:&nbsp;
<span class="author">{{ version.creator }}</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import { Component, Input } from '@angular/core';
import { Metadata, MetadataTypes } from '../../domain/domain.type';
import { MetadataVersion } from '../model/version';

import { CONFIG_DATE_FORMAT } from '../configuration.values';

@Component({
selector: 'metadata-header',
templateUrl: './metadata-header.component.html',
Expand All @@ -14,6 +16,8 @@ export class MetadataHeaderComponent {
@Input() versionNumber: number;
@Input() isCurrent: boolean;

DATE_FORMAT = CONFIG_DATE_FORMAT;

constructor() {}
}

Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ export const FileBackedHttpMetadataProviderEditor: Wizard<FileBackedHttpMetadata
index: 1,
initialValues: [],
fields: [
'name',
'@type',
'enabled',
'xmlId',
'metadataURL',
Expand Down

0 comments on commit 0283c5f

Please sign in to comment.