mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
[ACA-3613] Inconsistent role value between library views (#5855)
* [ACA-3613] Inconsistent role value between library views * [ACA-3670] Inconsistent empty role value between library views * fixed ut
This commit is contained in:
parent
81d3247c87
commit
8ac683d164
@ -22,7 +22,7 @@ import { NO_ERRORS_SCHEMA, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
||||
import { ContentTestingModule } from '../../../testing/content.testing.module';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
|
||||
describe('LibraryNameColumnComponent', () => {
|
||||
describe('LibraryRoleColumnComponent', () => {
|
||||
let fixture: ComponentFixture<LibraryRoleColumnComponent>;
|
||||
let component: LibraryRoleColumnComponent;
|
||||
|
||||
@ -96,6 +96,6 @@ describe('LibraryNameColumnComponent', () => {
|
||||
component.displayText$.subscribe((val) => value = val);
|
||||
|
||||
fixture.detectChanges();
|
||||
expect(value).toBe('');
|
||||
expect(value).toBe('LIBRARY.ROLE.NONE');
|
||||
});
|
||||
});
|
||||
|
@ -86,7 +86,7 @@ export class LibraryRoleColumnComponent implements OnInit, OnDestroy {
|
||||
this.displayText$.next('LIBRARY.ROLE.CONSUMER');
|
||||
break;
|
||||
default:
|
||||
this.displayText$.next('');
|
||||
this.displayText$.next('LIBRARY.ROLE.NONE');
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -401,7 +401,8 @@
|
||||
"MANAGER": "Manager",
|
||||
"COLLABORATOR": "Collaborator",
|
||||
"CONTRIBUTOR": "Contributor",
|
||||
"CONSUMER": "Consumer"
|
||||
"CONSUMER": "Consumer",
|
||||
"NONE": "Not a member"
|
||||
},
|
||||
"VISIBILITY": {
|
||||
"PRIVATE": "Private",
|
||||
|
Loading…
x
Reference in New Issue
Block a user