[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[reclaim-ui] 408/459: various fixes
From: |
gnunet |
Subject: |
[reclaim-ui] 408/459: various fixes |
Date: |
Fri, 11 Jun 2021 23:28:20 +0200 |
This is an automated email from the git hooks/post-receive script.
martin-schanzenbach pushed a commit to branch master
in repository reclaim-ui.
commit 9def7154fd261fafcbf10b84410506c8db7df521
Author: Martin Schanzenbach <schanzen@gnunet.org>
AuthorDate: Tue Jan 5 19:10:45 2021 +0900
various fixes
---
src/app/edit-identity/edit-identity.component.html | 14 +++++++++-----
src/app/edit-identity/edit-identity.component.ts | 8 ++++++++
src/app/identity-list/identity-list.component.html | 10 +++++-----
3 files changed, 22 insertions(+), 10 deletions(-)
diff --git a/src/app/edit-identity/edit-identity.component.html
b/src/app/edit-identity/edit-identity.component.html
index 9780e62..8a315be 100644
--- a/src/app/edit-identity/edit-identity.component.html
+++ b/src/app/edit-identity/edit-identity.component.html
@@ -296,13 +296,17 @@
<button class="btn btn-primary" (click)="goBack()">
<span class="fa fa-arrow-left"></span> {{ getMessage("Back") }}
</button>
- <button *ngIf="oidcService.inOpenIdFlow()"
[disabled]="!isClientVerified()" (click)="loginIdentity(identity)"
- class="btn btn-primary mr-1 openid-login">
- <span *ngIf="isClientVerified()">{{
getMessage("identity_list_html@shareInfo1") }} <i
- class="fa fa-share-alt text-primary"></i> {{
getMessage("identity_list_html@shareInfo2") }}</span>
- <span *ngIf="!isClientVerified()"><i class="fa
fa-exclamation-circle"></i>
+ <button *ngIf="oidcService.inOpenIdFlow()"
[disabled]="!isClientVerified() || attributes.length <= 0"
(click)="loginIdentity(identity)"
+ class="btn btn-success btn-lg mr-1 openid-login">
+ <span *ngIf="isClientVerified() && attributes.length > 0">{{
getMessage("identity_list_html@shareInfo1") }} <i
+ class="fa fa-share-alt"></i> {{
getMessage("identity_list_html@shareInfo2") }}</span>
+ <span *ngIf="!isClientVerified() || attributes.length <= 0"><i
class="fa fa-exclamation-circle"></i>
{{ getMessage("identity_list_html@sharingDisabled") }}</span>
</button>
+ <button *ngIf="oidcService.inOpenIdFlow() &&
oidcService.isClientVerified()" class="btn btn-danger mt-2"
(click)="oidcService.cancelAuthorization()">
+ <span class="fa fa-ban"></span> {{
getMessage("identity_list_html@declineRequest") }}
+ </button>
+
<button *ngIf="!inOpenIdFlow()" class="btn btn-primary"
[routerLink]="['/edit-authorizations', identity.name]" [style.float]="'right'">
<span class="fa fa-share-alt"></span>
{{ getMessage("edit_identity_html@manageAuths") }}
diff --git a/src/app/edit-identity/edit-identity.component.ts
b/src/app/edit-identity/edit-identity.component.ts
index 4ad252d..0608f61 100644
--- a/src/app/edit-identity/edit-identity.component.ts
+++ b/src/app/edit-identity/edit-identity.component.ts
@@ -212,6 +212,14 @@ export class EditIdentityComponent implements OnInit {
resetAttributes() {
this.resetStandardAttribute(this.newStandardAttribute);
this.resetStandardAttribute(this.newRequestedAttribute);
+ if (this.newRequestedAttribute.name === '') {
+ let missing = this.getMissingClaims();
+ if (missing.length > 0) {
+ let firstMissing = this.getMissingClaims()[0];
+ this.newRequestedAttribute.name = firstMissing.name;
+ this.newRequestedAttribute.flag = firstMissing.flag;
+ }
+ }
this.resetAttribute(this.newAttribute);
}
diff --git a/src/app/identity-list/identity-list.component.html
b/src/app/identity-list/identity-list.component.html
index e8a1c5f..a79a1f7 100644
--- a/src/app/identity-list/identity-list.component.html
+++ b/src/app/identity-list/identity-list.component.html
@@ -178,11 +178,11 @@
</div>
</div>
<div *ngIf="inOpenIdFlow()">
- <button [disabled]="!isClientVerified()"
(click)="loginIdentity(identity)"
- class="btn btn-primary mr-1 openid-login">
- <span *ngIf="isClientVerified()">{{
getMessage("identity_list_html@shareInfo1") }} <i
- class="fa fa-share-alt text-primary"></i> {{
getMessage("identity_list_html@shareInfo2") }}</span>
- <span *ngIf="!isClientVerified()"><i class="fa
fa-exclamation-circle"></i>
+ <button [disabled]="!isClientVerified() ||
getIdentityAttributes(identity).length <= 0" (click)="loginIdentity(identity)"
+ class="btn btn-success btn-lg mr-1 openid-login">
+ <span *ngIf="isClientVerified() &&
getIdentityAttributes(identity).length > 0">{{
getMessage("identity_list_html@shareInfo1") }}
+ <i class="fa fa-share-alt"></i> {{
getMessage("identity_list_html@shareInfo2") }}</span>
+ <span *ngIf="!isClientVerified() ||
getIdentityAttributes(identity).length <= 0"><i class="fa
fa-exclamation-circle"></i>
{{ getMessage("identity_list_html@sharingDisabled") }}</span>
</button>
</div>
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [reclaim-ui] 392/459: fix, (continued)
- [reclaim-ui] 392/459: fix, gnunet, 2021/06/11
- [reclaim-ui] 411/459: fix, gnunet, 2021/06/11
- [reclaim-ui] 410/459: enable filtering, gnunet, 2021/06/11
- [reclaim-ui] 389/459: update, gnunet, 2021/06/11
- [reclaim-ui] 414/459: replace table, gnunet, 2021/06/11
- [reclaim-ui] 400/459: fix, gnunet, 2021/06/11
- [reclaim-ui] 425/459: fix logo, gnunet, 2021/06/11
- [reclaim-ui] 434/459: Added translation using Weblate (Portuguese (Brazil)), gnunet, 2021/06/11
- [reclaim-ui] 429/459: yarn upgrade, gnunet, 2021/06/11
- [reclaim-ui] 390/459: update dependencies, gnunet, 2021/06/11
- [reclaim-ui] 408/459: various fixes,
gnunet <=
- [reclaim-ui] 398/459: select attributes to overwrite, gnunet, 2021/06/11
- [reclaim-ui] 435/459: Translated using Weblate (Portuguese), gnunet, 2021/06/11
- [reclaim-ui] 417/459: slim down attribute import, gnunet, 2021/06/11
- [reclaim-ui] 415/459: table header, gnunet, 2021/06/11
- [reclaim-ui] 439/459: Added translation using Weblate (Russian), gnunet, 2021/06/11
- [reclaim-ui] 448/459: Translated using Weblate (French), gnunet, 2021/06/11
- [reclaim-ui] 402/459: fix icons, translations, gnunet, 2021/06/11
- [reclaim-ui] 441/459: Translated using Weblate (Portuguese), gnunet, 2021/06/11
- [reclaim-ui] 420/459: fix, gnunet, 2021/06/11
- [reclaim-ui] 443/459: Translated using Weblate (Spanish), gnunet, 2021/06/11