@ -394,7 +394,7 @@ export default class ContactsView extends Vue {
{
group : "alert" ,
type : "danger" ,
title : "Error With Server" ,
title : "Server Erro r" ,
text :
"Got an error retrieving your " +
( useRecipient ? "given" : "received" ) +
@ -453,7 +453,7 @@ export default class ContactsView extends Vue {
{
group : "alert" ,
type : "danger" ,
title : "Error With Server" ,
title : "Server Erro r" ,
text : error as string ,
} ,
- 1 ,
@ -589,6 +589,16 @@ export default class ContactsView extends Vue {
"?" ,
)
) {
this . $notify (
{
group : "alert" ,
type : "toast" ,
text : "" ,
title : "Registration submitted..." ,
} ,
1000 ,
) ;
const identity = await this . getIdentity ( this . activeDid ) ;
const vcClaim : RegisterVerifiableCredential = {
@ -671,7 +681,7 @@ export default class ContactsView extends Vue {
{
group : "alert" ,
type : "danger" ,
title : "Error With Server" ,
title : "Server Erro r" ,
text : userMessage ,
} ,
- 1 ,
@ -696,36 +706,30 @@ export default class ContactsView extends Vue {
contact . seesMe = visibility ;
db . contacts . update ( contact . did , { seesMe : visibility } ) ;
} else {
console . error ( "Bad response setting visibility: " , resp . data ) ;
if ( resp . data . error ? . message ) {
this . $notify (
{
group : "alert" ,
type : "danger" ,
title : "Error With Server" ,
text : resp . data . error ? . message ,
} ,
- 1 ,
) ;
} else {
this . $notify (
{
group : "alert" ,
type : "danger" ,
title : "Error With Server" ,
text : "Bad server response of " + resp . status ,
} ,
- 1 ,
) ;
}
console . error (
"Got some bad server response when setting visibility: " ,
resp ,
) ;
const message =
resp . data . error ? . message || "Bad server response of " + resp . status ;
this . $notify (
{
group : "alert" ,
type : "danger" ,
title : "Server Error" ,
text : message ,
} ,
- 1 ,
) ;
}
} catch ( err ) {
console . error ( "Got some server error when setting visibility:" , err ) ;
this . $notify (
{
group : "alert" ,
type : "danger" ,
title : "Error With Server" ,
text : err as string ,
title : "Server Erro r" ,
text : "Check connectivity and try again." ,
} ,
- 1 ,
) ;
@ -750,7 +754,7 @@ export default class ContactsView extends Vue {
this . $notify (
{
group : "alert" ,
type : "toast " ,
type : "info " ,
title : "Refreshed" ,
text :
this . nameForContact ( contact , true ) +
@ -758,38 +762,29 @@ export default class ContactsView extends Vue {
( visibility ? "" : "not " ) +
"see your activity." ,
} ,
5000 ,
- 1 ,
) ;
} else {
if ( resp . data . error ? . message ) {
this . $notify (
{
group : "alert" ,
type : "danger" ,
title : "Error With Server" ,
text : resp . data . error ? . message ,
} ,
- 1 ,
) ;
} else {
this . $notify (
{
group : "alert" ,
type : "danger" ,
title : "Error With Server" ,
text : "Bad server response of " + resp . status ,
} ,
- 1 ,
) ;
}
const message =
resp . data . error ? . message || "Bad server response of " + resp . status ;
this . $notify (
{
group : "alert" ,
type : "danger" ,
title : "Server Error" ,
text : resp . data . error ? . message ,
} ,
- 1 ,
) ;
}
} catch ( err ) {
console . log ( "Caught error from server request to check visibility:" , err ) ;
this . $notify (
{
group : "alert" ,
type : "danger" ,
title : "Error With Server" ,
text : err as string ,
title : "Server Error" ,
text : "Check connectivity and try again." ,
} ,
- 1 ,
) ;
@ -989,7 +984,7 @@ export default class ContactsView extends Vue {
{
group : "alert" ,
type : "danger" ,
title : "Error With Server" ,
title : "Server Erro r" ,
text : userMessage ,
} ,
- 1 ,