Skip to content

Commit e1b63fb

Browse files
committed
Merge branch 'microsoft_bug' of github.com:FAIRsharing/fairsharing.github.io into microsoft_bug
2 parents 0544064 + bfda08a commit e1b63fb

File tree

2 files changed

+9
-11
lines changed

2 files changed

+9
-11
lines changed

documentation/html/quicksearch.html

+1-1
Large diffs are not rendered by default.

documentation/html/views_Records_Record.vue.html

+8-10
Original file line numberDiff line numberDiff line change
@@ -630,15 +630,15 @@ <h1 class="page-title">Source: views/Records/Record.vue</h1>
630630
await this.getData();
631631
if (!this.error) {
632632
await this.canEditRecord();
633-
await this.checkClaimStatus();
633+
//await this.checkClaimStatus();
634634
await this.getMenuButtons();
635635
}
636636
await this.$nextTick();
637637
await this.$scrollTo(this.$route.hash || 'body')
638638
},
639639
async userIsLoggedIn() {
640640
await this.canEditRecord();
641-
await this.checkClaimStatus();
641+
//await this.checkClaimStatus();
642642
await this.getMenuButtons();
643643
await this.checkAlerts();
644644
}
@@ -655,7 +655,7 @@ <h1 class="page-title">Source: views/Records/Record.vue</h1>
655655
_module.$emit('updateHead');
656656
if (!_module.error) {
657657
await _module.canEditRecord();
658-
await _module.checkClaimStatus();
658+
//await _module.checkClaimStatus();
659659
await _module.getMenuButtons()
660660
}
661661
await _module.$nextTick();
@@ -1026,9 +1026,8 @@ <h1 class="page-title">Source: views/Records/Record.vue</h1>
10261026
async checkClaimStatus() {
10271027
let _module = this;
10281028
if (_module.user().isLoggedIn) {
1029-
//const recordID = _module.currentRecord['fairsharingRecord'].id;
1029+
const recordID = _module.currentRecord['fairsharingRecord'].id;
10301030
_module.canClaim = false;
1031-
/*
10321031
try {
10331032
const claim = await client.canClaim(recordID, _module.user().credentials.token);
10341033
if (claim.error) {
@@ -1057,11 +1056,10 @@ <h1 class="page-title">Source: views/Records/Record.vue</h1>
10571056
_module.noClaimRegistered = true;
10581057
}
10591058
}
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+
}
10651063
}
10661064
},
10671065
/**

0 commit comments

Comments
 (0)