Skip to content

Commit

Permalink
Added: Filter TODOs according to the function canShowBridgeheadAdminB…
Browse files Browse the repository at this point in the history
…uttons
  • Loading branch information
djuarezgf committed Dec 12, 2024
1 parent 6388c40 commit 2257510
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/components/ProjectView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,9 @@ export default defineComponent({
},
existsVotum(newValue, oldValue){
this.extendedExplanations = this.fetchExtendedExplanations();
},
existInvitedUsers(newValue, oldValue){
this.extendedExplanations = this.fetchExtendedExplanations();
}
},
mounted() {
Expand Down Expand Up @@ -638,6 +641,14 @@ export default defineComponent({
if (!this.existsAuthenticationScript){
this.removeActionExplanation(Action.DOWNLOAD_AUTHENTICATION_SCRIPT_ACTION, extendedExplanations);
}
if (!this.canShowBridgeheadAdminButtons()){
this.removeActionExplanation(Action.ACCEPT_BRIDGEHEAD_PROJECT_ACTION, extendedExplanations);
this.removeActionExplanation(Action.REJECT_BRIDGEHEAD_PROJECT_ACTION, extendedExplanations);
this.removeActionExplanation(Action.REQUEST_CHANGES_IN_PROJECT_ACTION, extendedExplanations);
this.removeActionExplanation(Action.SAVE_QUERY_IN_BRIDGEHEAD_ACTION, extendedExplanations);
this.removeActionExplanation(Action.SAVE_AND_EXECUTE_QUERY_IN_BRIDGEHEAD_ACTION, extendedExplanations);
this.removeActionExplanation(Action.SEND_EXPORT_FILES_TO_RESEARCH_ENVIRONMENT_ACTION, extendedExplanations);
}
if (this.existsDraftDialog) {
const count = extendedExplanations.size + 1;
Expand Down

0 comments on commit 2257510

Please sign in to comment.