Commit 06b169b2 authored by Sheetal Umesh Kumar's avatar Sheetal Umesh Kumar Committed by Nick Stenning

Show appropriate message if an annotation is unavailable to a user. (#3326)

If a selected annotation is unavailable to a user, prompt user to sign in
if they are not signed in. If a selected annotation is unavailable to a user
and they are already signed in, display a message.

See: https://trello.com/c/scNGUMBk/330-improve-copy-to-clarify-direct-linking-functionality
parent f677a0a4
...@@ -27,7 +27,6 @@ $thread-padding: $annotation-card-left-padding; ...@@ -27,7 +27,6 @@ $thread-padding: $annotation-card-left-padding;
align-items: center; align-items: center;
&__label { &__label {
max-width: 160px;
text-align: center; text-align: center;
} }
......
...@@ -27,7 +27,16 @@ ...@@ -27,7 +27,16 @@
ng-if="selectedAnnotationUnavailable()"> ng-if="selectedAnnotationUnavailable()">
<div class="annotation-unavailable-message__icon"></div> <div class="annotation-unavailable-message__icon"></div>
<p class="annotation-unavailable-message__label"> <p class="annotation-unavailable-message__label">
You do not have permission to see this annotation <span ng-if="auth.status === 'signed-out'">
This annotation is not available.
<br>
You may need to
<a class="loggedout-message__link" href="" ng-click="login()">sign in</a>
to see it.
</span>
<span ng-if="auth.status === 'signed-in'">
You do not have permission to view this annotation.
</span>
</p> </p>
</li> </li>
<li class="thread-list__spacer" <li class="thread-list__spacer"
......
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