- 
                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.
  
          Fixed issues in Enable Metadata Source tab
        
    - Loading branch information
 
      Showing
      30 changed files
      with
      564 additions
      and
      109 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
    
  
  
    
              
              
  
    
      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
    
  
  
    
              
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,90 @@ | ||
| import { Action } from '@ngrx/store'; | ||
| import { MetadataResolver } from '../../metadata/domain/model'; | ||
| import { Update } from '@ngrx/entity'; | ||
| 
     | 
||
| export enum MetadataCollectionActionTypes { | ||
| UPDATE_METADATA_REQUEST = '[Admin Metadata Collection] Update Request', | ||
| UPDATE_METADATA_SUCCESS = '[Admin Metadata Collection] Update Success', | ||
| UPDATE_METADATA_FAIL = '[Admin Metadata Collection] Update Fail', | ||
| UPDATE_METADATA_CONFLICT = '[Admin Metadata Collection] Update Conflict', | ||
| 
     | 
||
| LOAD_METADATA_REQUEST = '[Admin Metadata Collection] Load Metadata REQUEST', | ||
| LOAD_METADATA_SUCCESS = '[Admin Metadata Collection] Load Metadata SUCCESS', | ||
| LOAD_METADATA_ERROR = '[Admin Metadata Collection] Load Metadata ERROR', | ||
| 
     | 
||
| REMOVE_METADATA = '[Admin Metadata Collection] Remove Metadata', | ||
| REMOVE_METADATA_SUCCESS = '[Admin Metadata Collection] Remove Metadata Success', | ||
| REMOVE_METADATA_FAIL = '[Admin Metadata Collection] Remove Metadata Fail', | ||
| } | ||
| 
     | 
||
| export class LoadMetadataRequest implements Action { | ||
| readonly type = MetadataCollectionActionTypes.LOAD_METADATA_REQUEST; | ||
| 
     | 
||
| constructor() { } | ||
| } | ||
| 
     | 
||
| export class LoadMetadataSuccess implements Action { | ||
| readonly type = MetadataCollectionActionTypes.LOAD_METADATA_SUCCESS; | ||
| 
     | 
||
| constructor(public payload: MetadataResolver[]) { } | ||
| } | ||
| 
     | 
||
| export class LoadMetadataError implements Action { | ||
| readonly type = MetadataCollectionActionTypes.LOAD_METADATA_ERROR; | ||
| 
     | 
||
| constructor(public payload: any) { } | ||
| } | ||
| 
     | 
||
| export class UpdateMetadataRequest implements Action { | ||
| readonly type = MetadataCollectionActionTypes.UPDATE_METADATA_REQUEST; | ||
| 
     | 
||
| constructor(public payload: MetadataResolver) { } | ||
| } | ||
| 
     | 
||
| export class UpdateMetadataSuccess implements Action { | ||
| readonly type = MetadataCollectionActionTypes.UPDATE_METADATA_SUCCESS; | ||
| 
     | 
||
| constructor(public payload: Update<MetadataResolver>) { } | ||
| } | ||
| 
     | 
||
| export class UpdateMetadataFail implements Action { | ||
| readonly type = MetadataCollectionActionTypes.UPDATE_METADATA_FAIL; | ||
| 
     | 
||
| constructor(public payload: any) { } | ||
| } | ||
| 
     | 
||
| export class UpdateMetadataConflict implements Action { | ||
| readonly type = MetadataCollectionActionTypes.UPDATE_METADATA_CONFLICT; | ||
| 
     | 
||
| constructor(public payload: MetadataResolver) { } | ||
| } | ||
| 
     | 
||
| export class RemoveMetadataRequest implements Action { | ||
| readonly type = MetadataCollectionActionTypes.REMOVE_METADATA; | ||
| 
     | 
||
| constructor(public payload: MetadataResolver) { } | ||
| } | ||
| 
     | 
||
| export class RemoveMetadataSuccess implements Action { | ||
| readonly type = MetadataCollectionActionTypes.REMOVE_METADATA_SUCCESS; | ||
| 
     | 
||
| constructor(public payload: MetadataResolver) { } | ||
| } | ||
| 
     | 
||
| export class RemoveMetadataFail implements Action { | ||
| readonly type = MetadataCollectionActionTypes.REMOVE_METADATA_FAIL; | ||
| 
     | 
||
| constructor(public payload: MetadataResolver) { } | ||
| } | ||
| 
     | 
||
| export type MetadataCollectionActionsUnion = | ||
| | LoadMetadataRequest | ||
| | LoadMetadataSuccess | ||
| | LoadMetadataError | ||
| | RemoveMetadataRequest | ||
| | RemoveMetadataSuccess | ||
| | RemoveMetadataFail | ||
| | UpdateMetadataRequest | ||
| | UpdateMetadataSuccess | ||
| | UpdateMetadataFail | ||
| | UpdateMetadataConflict; | 
  
    
      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
    
  
  
    
              
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -1,10 +1,18 @@ | ||
| import { Component, OnInit } from '@angular/core'; | ||
| import { Component } from '@angular/core'; | ||
| 
     | 
||
| import * as fromRoot from '../app.reducer'; | ||
| import { Store } from '@ngrx/store'; | ||
| import { LoadAdminRequest } from './action/admin-collection.action'; | ||
| 
     | 
||
| @Component({ | ||
| selector: 'admin-page', | ||
| templateUrl: './admin.component.html', | ||
| styleUrls: [] | ||
| }) | ||
| export class AdminComponent { | ||
| constructor() { } | ||
| constructor( | ||
| private store: Store<fromRoot.State> | ||
| ) { | ||
| this.store.dispatch(new LoadAdminRequest()); | ||
| } | ||
| } | 
  
    
      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
    
  
  
    
              
              
  
    
      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.