-
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.
Merged in feature/SHIBUI-1361 (pull request #357)
SHIBUI-1361 Fixed issue with displaying proper version Approved-by: Ryan Mathis <rmathis@unicon.net>
- Loading branch information
Showing
29 changed files
with
331 additions
and
75 deletions.
There are no files selected for viewing
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
36 changes: 36 additions & 0 deletions
36
ui/src/app/metadata/configuration/action/restore.action.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,36 @@ | ||
import { Action } from '@ngrx/store'; | ||
import { Metadata } from '../../domain/domain.type'; | ||
|
||
export enum RestoreActionTypes { | ||
SELECT_VERSION_SUCCESS = '[Restore Version] Select Version Success', | ||
SELECT_VERSION_ERROR = '[Restore Version] Select Version Error', | ||
SELECT_VERSION_REQUEST = '[Restore Version] Select Version Request', | ||
CLEAR_VERSION = '[Restore Version] Clear Versions' | ||
} | ||
|
||
export class SelectVersionRestoreRequest implements Action { | ||
readonly type = RestoreActionTypes.SELECT_VERSION_REQUEST; | ||
|
||
constructor(public payload: { type: string, id: string, version: string }) { } | ||
} | ||
|
||
export class SelectVersionRestoreSuccess implements Action { | ||
readonly type = RestoreActionTypes.SELECT_VERSION_SUCCESS; | ||
|
||
constructor(public payload: Metadata) { } | ||
} | ||
export class SelectVersionRestoreError implements Action { | ||
readonly type = RestoreActionTypes.SELECT_VERSION_ERROR; | ||
|
||
constructor(public payload: any) { } | ||
} | ||
|
||
export class ClearVersionRestore implements Action { | ||
readonly type = RestoreActionTypes.CLEAR_VERSION; | ||
} | ||
|
||
export type RestoreActionsUnion = | ||
| SelectVersionRestoreRequest | ||
| SelectVersionRestoreError | ||
| SelectVersionRestoreSuccess | ||
| ClearVersionRestore; |
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
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
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
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
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
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
6 changes: 6 additions & 0 deletions
6
ui/src/app/metadata/configuration/container/metadata-comparison.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
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
6 changes: 5 additions & 1 deletion
6
ui/src/app/metadata/configuration/container/metadata-history.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,5 +1,9 @@ | ||
<h2 class="mb-4"> | ||
Version History | ||
</h2> | ||
<div class="container"> | ||
<history-list | ||
[history]="history$ | async" | ||
(compare)="compareVersions($event)"></history-list> | ||
(compare)="compareVersions($event)" | ||
(restore)="restoreVersion($event)"></history-list> | ||
</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
5 changes: 5 additions & 0 deletions
5
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
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
5 changes: 5 additions & 0 deletions
5
ui/src/app/metadata/configuration/container/metadata-xml.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
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
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
Oops, something went wrong.