- 
                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-1347 (pull request #331)
        
    SHIBUI-1347 Updated metadata header
- Loading branch information
 
      Showing
      47 changed files
      with
      659 additions
      and
      550 deletions.
    
  
  There are no files selected for viewing
Large diffs are not rendered by default.
      
      Oops, something went wrong.
      
    
  
  
    
      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
    
  
  
    
              
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| export interface NavigationAction { | ||
| action: ($event: Event) => void; | ||
| category: string; | ||
| label: string; | ||
| content: string; | ||
| icon?: string; | ||
| } | 
  
    
      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,31 @@ | ||
| import { Injectable } from '@angular/core'; | ||
| import { BehaviorSubject, Observable } from 'rxjs'; | ||
| import { NavigationAction } from '../model/action'; | ||
| 
     | 
||
| @Injectable() | ||
| export class NavigationService { | ||
| 
     | 
||
| private actions: { [name: string]: NavigationAction} = {}; | ||
| private subj: BehaviorSubject<NavigationAction[]>; | ||
| private obs: Observable<NavigationAction[]>; | ||
| 
     | 
||
| constructor() { | ||
| this.subj = new BehaviorSubject<NavigationAction[]>(this.actionList); | ||
| this.obs = this.subj.asObservable(); | ||
| } | ||
| 
     | 
||
| get actionList(): NavigationAction[] { | ||
| return Object.values(this.actions); | ||
| } | ||
| 
     | 
||
| get emitter(): Observable<NavigationAction[]> { | ||
| return this.obs; | ||
| } | ||
| 
     | 
||
| addAction(name: string, action: NavigationAction): NavigationAction[] { | ||
| console.log(this.actions); | ||
| this.actions[name] = action; | ||
| this.subj.next(this.actionList); | ||
| return this.actionList; | ||
| } | ||
| } | 
        
          
            9 changes: 3 additions & 6 deletions
          
          9 
        
  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
    
  
  
    
              
              
  
    
      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
    
  
  
    
              
              
        
          
            27 changes: 15 additions & 12 deletions
          
          27 
        
  ui/src/app/metadata/configuration/container/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
    
  
  
    
              
              
  
    
      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.