Skip to content

Commit

Permalink
Don't checkClaimStatus.
Browse files Browse the repository at this point in the history
  • Loading branch information
knirirr committed Feb 5, 2025
1 parent 49472fa commit 805ae48
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions src/views/Records/Record.vue
Original file line number Diff line number Diff line change
Expand Up @@ -537,15 +537,15 @@ export default {
await this.getData();
if (!this.error) {
await this.canEditRecord();
await this.checkClaimStatus();
//await this.checkClaimStatus();
await this.getMenuButtons();
}
await this.$nextTick();
await this.$scrollTo(this.$route.hash || 'body')
},
async userIsLoggedIn() {
await this.canEditRecord();
await this.checkClaimStatus();
//await this.checkClaimStatus();
await this.getMenuButtons();
await this.checkAlerts();
}
Expand All @@ -562,7 +562,7 @@ export default {
_module.$emit('updateHead');
if (!_module.error) {
await _module.canEditRecord();
await _module.checkClaimStatus();
//await _module.checkClaimStatus();
await _module.getMenuButtons()
}
await _module.$nextTick();
Expand Down Expand Up @@ -933,9 +933,8 @@ export default {
async checkClaimStatus() {
let _module = this;
if (_module.user().isLoggedIn) {
//const recordID = _module.currentRecord['fairsharingRecord'].id;
const recordID = _module.currentRecord['fairsharingRecord'].id;
_module.canClaim = false;
/*
try {
const claim = await client.canClaim(recordID, _module.user().credentials.token);
if (claim.error) {
Expand Down Expand Up @@ -964,11 +963,10 @@ export default {
_module.noClaimRegistered = true;
}
}
*/
//catch (e) {
// /* istanbul ignore next */
// _module.canClaim = false;
//}
catch (e) {
/* istanbul ignore next */
_module.canClaim = false;
}
}
},
/**
Expand Down

0 comments on commit 805ae48

Please sign in to comment.