-
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#9992 Migrate error doi message modals to useDialog
- Loading branch information
1 parent
e2081d9
commit 5829257
Showing
9 changed files
with
116 additions
and
102 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
src/components/ListPanel/doi/DoiFailedActionDialogBody.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,16 @@ | ||
<template> | ||
<p>{{ t('manager.dois.update.partialFailure') }}</p> | ||
<ul> | ||
<li v-for="errorMessage in failedDoiActions" :key="errorMessage.index"> | ||
{{ errorMessage }} | ||
</li> | ||
</ul> | ||
</template> | ||
|
||
<script setup> | ||
import {useLocalize} from '@/composables/useLocalize'; | ||
defineProps({ | ||
failedDoiActions: {type: Array, required: true}, | ||
}); | ||
const {t} = useLocalize(); | ||
</script> |
This file was deleted.
Oops, something went wrong.
23 changes: 23 additions & 0 deletions
23
src/components/ListPanel/doi/DoiItemViewErrorDialogBody.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,23 @@ | ||
<template> | ||
<p>{{ errorMessageAgencyPreamble }}</p> | ||
<div class="depositErrorMessage"> | ||
<pre>{{ errorMessage }}</pre> | ||
</div> | ||
</template> | ||
|
||
<script setup> | ||
defineProps({ | ||
errorMessageAgencyPreamble: {type: String, required: true}, | ||
errorMessage: {type: String, required: true}, | ||
}); | ||
</script> | ||
|
||
<style lang="less"> | ||
@import '../../../styles/_import'; | ||
.depositErrorMessage { | ||
background: rgb(234, 237, 238); | ||
> pre { | ||
white-space: pre-wrap; | ||
} | ||
} | ||
</style> |
This file was deleted.
Oops, something went wrong.
22 changes: 0 additions & 22 deletions
22
src/components/ListPanel/doi/DoiItemViewRegisteredMessage.vue
This file was deleted.
Oops, something went wrong.
11 changes: 11 additions & 0 deletions
11
src/components/ListPanel/doi/DoiItemViewRegisteredMessageDialogBody.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,11 @@ | ||
<template> | ||
<p>{{ registeredMessageAgencyPreamble }}</p> | ||
<p>{{ registeredMessage }}</p> | ||
</template> | ||
|
||
<script setup> | ||
defineProps({ | ||
registeredMessageAgencyPreamble: {type: String, required: true}, | ||
registeredMessage: {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
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