@@ -630,15 +630,15 @@ <h1 class="page-title">Source: views/Records/Record.vue</h1>
630
630
await this.getData();
631
631
if (!this.error) {
632
632
await this.canEditRecord();
633
- await this.checkClaimStatus();
633
+ // await this.checkClaimStatus();
634
634
await this.getMenuButtons();
635
635
}
636
636
await this.$nextTick();
637
637
await this.$scrollTo(this.$route.hash || 'body')
638
638
},
639
639
async userIsLoggedIn() {
640
640
await this.canEditRecord();
641
- await this.checkClaimStatus();
641
+ // await this.checkClaimStatus();
642
642
await this.getMenuButtons();
643
643
await this.checkAlerts();
644
644
}
@@ -655,7 +655,7 @@ <h1 class="page-title">Source: views/Records/Record.vue</h1>
655
655
_module.$emit('updateHead');
656
656
if (!_module.error) {
657
657
await _module.canEditRecord();
658
- await _module.checkClaimStatus();
658
+ // await _module.checkClaimStatus();
659
659
await _module.getMenuButtons()
660
660
}
661
661
await _module.$nextTick();
@@ -1026,9 +1026,8 @@ <h1 class="page-title">Source: views/Records/Record.vue</h1>
1026
1026
async checkClaimStatus() {
1027
1027
let _module = this;
1028
1028
if (_module.user().isLoggedIn) {
1029
- // const recordID = _module.currentRecord['fairsharingRecord'].id;
1029
+ const recordID = _module.currentRecord['fairsharingRecord'].id;
1030
1030
_module.canClaim = false;
1031
- /*
1032
1031
try {
1033
1032
const claim = await client.canClaim(recordID, _module.user().credentials.token);
1034
1033
if (claim.error) {
@@ -1057,11 +1056,10 @@ <h1 class="page-title">Source: views/Records/Record.vue</h1>
1057
1056
_module.noClaimRegistered = true;
1058
1057
}
1059
1058
}
1060
- */
1061
- //catch (e) {
1062
- // /* istanbul ignore next */
1063
- // _module.canClaim = false;
1064
- //}
1059
+ catch (e) {
1060
+ /* istanbul ignore next */
1061
+ _module.canClaim = false;
1062
+ }
1065
1063
}
1066
1064
},
1067
1065
/**
0 commit comments