-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pkp/pkp-lib#10290 Refine ParticipantManager permission logic (#509)
- Loading branch information
1 parent
e65555c
commit 5df6e67
Showing
5 changed files
with
95 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
src/managers/ParticipantManager/ParticipantManagerActionButton.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<template> | ||
<PkpButton | ||
:is-primary="isPrimary" | ||
:is-secondary="isSecondary" | ||
:is-warnable="isWarnable" | ||
:is-link="isLink" | ||
@click="() => participantManagerStore[action](actionArgs)" | ||
> | ||
{{ label }} | ||
</PkpButton> | ||
</template> | ||
<script setup> | ||
import PkpButton from '@/components/Button/Button.vue'; | ||
import {useParticipantManagerStore} from './participantManagerStore'; | ||
const participantManagerStore = useParticipantManagerStore(); | ||
defineProps({ | ||
isPrimary: {type: Boolean, required: false, default: false}, | ||
isSecondary: {type: Boolean, required: false, default: false}, | ||
isWarnable: {type: Boolean, required: false, default: false}, | ||
action: {type: String, required: true}, | ||
actionArgs: {type: Object, required: false, default: () => {}}, | ||
isLink: {type: Boolean, default: false}, | ||
label: {type: String, required: true}, | ||
}); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters