@@ -537,15 +537,15 @@ export default {
537
537
await this .getData ();
538
538
if (! this .error ) {
539
539
await this .canEditRecord ();
540
- await this .checkClaimStatus ();
540
+ // await this.checkClaimStatus();
541
541
await this .getMenuButtons ();
542
542
}
543
543
await this .$nextTick ();
544
544
await this .$scrollTo (this .$route .hash || ' body' )
545
545
},
546
546
async userIsLoggedIn () {
547
547
await this .canEditRecord ();
548
- await this .checkClaimStatus ();
548
+ // await this.checkClaimStatus();
549
549
await this .getMenuButtons ();
550
550
await this .checkAlerts ();
551
551
}
@@ -562,7 +562,7 @@ export default {
562
562
_module .$emit (' updateHead' );
563
563
if (! _module .error ) {
564
564
await _module .canEditRecord ();
565
- await _module .checkClaimStatus ();
565
+ // await _module.checkClaimStatus();
566
566
await _module .getMenuButtons ()
567
567
}
568
568
await _module .$nextTick ();
@@ -933,9 +933,8 @@ export default {
933
933
async checkClaimStatus () {
934
934
let _module = this ;
935
935
if (_module .user ().isLoggedIn ) {
936
- // const recordID = _module.currentRecord['fairsharingRecord'].id;
936
+ const recordID = _module .currentRecord [' fairsharingRecord' ].id ;
937
937
_module .canClaim = false ;
938
- /*
939
938
try {
940
939
const claim = await client .canClaim (recordID, _module .user ().credentials .token );
941
940
if (claim .error ) {
@@ -964,11 +963,10 @@ export default {
964
963
_module .noClaimRegistered = true ;
965
964
}
966
965
}
967
- */
968
- // catch (e) {
969
- // /* istanbul ignore next */
970
- // _module.canClaim = false;
971
- // }
966
+ catch (e) {
967
+ /* istanbul ignore next */
968
+ _module .canClaim = false ;
969
+ }
972
970
}
973
971
},
974
972
/**
0 commit comments