Fixed wrong storage authorization URN

pull/10857/head
Andreas Pfohl 2 years ago
parent 3440ca9722
commit 697d3762f1
No known key found for this signature in database
GPG Key ID: FF58F3B771328EB4
  1. 16
      frontend/src/app/shared/components/file-links/file-link-list/file-link-list.component.ts

@ -85,8 +85,8 @@ export class FileLinkListComponent extends UntilDestroyedMixin implements OnInit
emptyStorageButton:string, emptyStorageButton:string,
connectionErrorHeader:string, connectionErrorHeader:string,
connectionErrorContent:string, connectionErrorContent:string,
authenticationFailureHeader:string, authorizationFailureHeader:string,
authenticationFailureContent:string, authorizationFailureContent:string,
loginButton:string, loginButton:string,
}, },
actions:{ actions:{
@ -149,7 +149,7 @@ export class FileLinkListComponent extends UntilDestroyedMixin implements OnInit
private deriveStorageInformation(fileLinkCount:number):void { private deriveStorageInformation(fileLinkCount:number):void {
switch (this.storage._links.authorizationState.href) { switch (this.storage._links.authorizationState.href) {
case storageFailedAuthorization: case storageFailedAuthorization:
this.setAuthenticationFailureState(fileLinkCount); this.setAuthorizationFailureState(fileLinkCount);
break; break;
case storageAuthorizationError: case storageAuthorizationError:
this.setConnectionErrorState(); this.setConnectionErrorState();
@ -168,9 +168,9 @@ export class FileLinkListComponent extends UntilDestroyedMixin implements OnInit
} }
} }
private setAuthenticationFailureState(fileLinkCount:number):void { private setAuthorizationFailureState(fileLinkCount:number):void {
this.informationBoxHeader = this.text.infoBox.authenticationFailureHeader; this.informationBoxHeader = this.text.infoBox.authorizationFailureHeader;
this.informationBoxContent = this.text.infoBox.authenticationFailureContent; this.informationBoxContent = this.text.infoBox.authorizationFailureContent;
this.informationBoxButton = this.text.infoBox.loginButton; this.informationBoxButton = this.text.infoBox.loginButton;
this.informationBoxIcon = 'import'; this.informationBoxIcon = 'import';
this.showInformationBox$.next(true); this.showInformationBox$.next(true);
@ -204,8 +204,8 @@ export class FileLinkListComponent extends UntilDestroyedMixin implements OnInit
emptyStorageButton: this.i18n.t('js.label_open_storage', { storageType }), emptyStorageButton: this.i18n.t('js.label_open_storage', { storageType }),
connectionErrorHeader: this.i18n.t('js.label_no_storage_connection', { storageType }), connectionErrorHeader: this.i18n.t('js.label_no_storage_connection', { storageType }),
connectionErrorContent: this.i18n.t('js.label_storage_connection_error', { storageType }), connectionErrorContent: this.i18n.t('js.label_storage_connection_error', { storageType }),
authenticationFailureHeader: this.i18n.t('js.label_login_to_storage', { storageType }), authorizationFailureHeader: this.i18n.t('js.label_login_to_storage', { storageType }),
authenticationFailureContent: this.i18n.t('js.label_storage_not_connected', { storageType }), authorizationFailureContent: this.i18n.t('js.label_storage_not_connected', { storageType }),
loginButton: this.i18n.t('js.label_storage_login', { storageType }), loginButton: this.i18n.t('js.label_storage_login', { storageType }),
}, },
actions: { actions: {

Loading…
Cancel
Save