diff --git a/packages/context/src/lib/context-manager/context-item/context-item.component.ts b/packages/context/src/lib/context-manager/context-item/context-item.component.ts index 3e422fc7c6..68fb71db32 100644 --- a/packages/context/src/lib/context-manager/context-item/context-item.component.ts +++ b/packages/context/src/lib/context-manager/context-item/context-item.component.ts @@ -57,10 +57,7 @@ export class ContextItemComponent { } get canShare(): boolean { - return ( - this.storageService.get('canShare') === true && - this.context.permission === this.typePermission[this.typePermission.write] - ); + return this.storageService.get('canShare') === true; } constructor( diff --git a/packages/context/src/lib/context-manager/context-permissions/context-permissions-binding.directive.ts b/packages/context/src/lib/context-manager/context-permissions/context-permissions-binding.directive.ts index fb8cf56e8a..0bb1c9cfa4 100644 --- a/packages/context/src/lib/context-manager/context-permissions/context-permissions-binding.directive.ts +++ b/packages/context/src/lib/context-manager/context-permissions/context-permissions-binding.directive.ts @@ -129,6 +129,7 @@ export class ContextPermissionsBindingDirective implements OnInit, OnDestroy { ngOnDestroy() { this.editedContext$$.unsubscribe(); + this.contextService.editedContext$.next(undefined); } private handleEditedContextChange(context: DetailedContext) { diff --git a/packages/context/src/lib/context-manager/context-permissions/context-permissions.component.html b/packages/context/src/lib/context-manager/context-permissions/context-permissions.component.html index b9ce18c9ac..19c09d5938 100644 --- a/packages/context/src/lib/context-manager/context-permissions/context-permissions.component.html +++ b/packages/context/src/lib/context-manager/context-permissions/context-permissions.component.html @@ -1,6 +1,11 @@
{{ 'igo.context.permission.readOnlyMsg' | translate }}
+