Commit 7385c00a authored by Lyza Danger Gardner's avatar Lyza Danger Gardner

Remove `group.public` reliance from share dialog

parent 8c279fb1
......@@ -91,8 +91,7 @@ describe('annotationShareDialog', function () {
{
group: {
name: 'Public',
type: 'public',
public: true,
type: 'open',
},
uri: 'fakeURI',
isPrivate: false,
......@@ -142,7 +141,7 @@ describe('annotationShareDialog', function () {
it('is available to a group', function () {
element = util.createDirective(document, 'annotationShareDialog', {
group: {
public: false,
type: 'private',
},
isPrivate: false,
});
......
......@@ -36,7 +36,7 @@
<i class="h-icon-clipboard btn-icon"></i>
</button>
</div>
<div class="annotation-share-dialog-msg" ng-if="vm.group && !vm.group.public && !vm.isPrivate">
<div class="annotation-share-dialog-msg" ng-if="vm.group && vm.group.type === 'private' && !vm.isPrivate">
<span class="annotation-share-dialog-msg__audience">
Group.
</span>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment