From 109c6a28fb438f6fb89ccf4d56f827f37a6cdf27 Mon Sep 17 00:00:00 2001 From: "Deng, Qian" Date: Tue, 13 Mar 2018 14:08:50 +0800 Subject: [PATCH] Abstract repo click as a output event --- src/ui_ng/lib/README.md | 31 +++++++++++++++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) diff --git a/src/ui_ng/lib/README.md b/src/ui_ng/lib/README.md index 83b5c814f..d35b1ec6a 100644 --- a/src/ui_ng/lib/README.md +++ b/src/ui_ng/lib/README.md @@ -133,8 +133,6 @@ watchRepoClickEvent(repo: RepositoryItem): void { **hasProjectAdminRole** is a user session related property to determined whether the current user has project administrator role. Some action menus might be disabled based on this property. -**withVIC** is integrated with VIC - **repoClickEvent** is an @output event emitter for you to catch the repository click events. **repoProvisionEvent** is an @output event emitter for you to catch the deploy button click event. @@ -145,6 +143,35 @@ watchRepoClickEvent(repo: RepositoryItem): void { @Output() addInfoEvent = new EventEmitter(); +**hbr-repository Directive** + +**projectId** is used to specify which projects the repositories are from. + +**repoName** is used to generate the related commands for pushing images. + +**hasSignedIn** is a user session related property to determined whether a valid user signed in session existing. This component supports anonymous user. + +**hasProjectAdminRole** is a user session related property to determined whether the current user has project administrator role. Some action menus might be disabled based on this property. + +**withClair** is Clair installed + +**withNotary** is Notary installed + +**tagClickEvent** is an @output event emitter for you to catch the tag click events. + +**goBackClickEvent** is an @output event emitter for you to catch the go back events. + +``` + + +watchTagClickEvt(tagEvt: TagClickEvent): void { + ... +} + +watchGoBackEvt(projectId: string): void { + ... +} ```