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 () { ...@@ -91,8 +91,7 @@ describe('annotationShareDialog', function () {
{ {
group: { group: {
name: 'Public', name: 'Public',
type: 'public', type: 'open',
public: true,
}, },
uri: 'fakeURI', uri: 'fakeURI',
isPrivate: false, isPrivate: false,
...@@ -142,7 +141,7 @@ describe('annotationShareDialog', function () { ...@@ -142,7 +141,7 @@ describe('annotationShareDialog', function () {
it('is available to a group', function () { it('is available to a group', function () {
element = util.createDirective(document, 'annotationShareDialog', { element = util.createDirective(document, 'annotationShareDialog', {
group: { group: {
public: false, type: 'private',
}, },
isPrivate: false, isPrivate: false,
}); });
......
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
<i class="h-icon-clipboard btn-icon"></i> <i class="h-icon-clipboard btn-icon"></i>
</button> </button>
</div> </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"> <span class="annotation-share-dialog-msg__audience">
Group. Group.
</span> </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