Skip to content

Commit

Permalink
pkp/pkp-lib#9992 clean up modals in stories, copied over the tpl files
Browse files Browse the repository at this point in the history
  • Loading branch information
jardakotesovec committed Jun 25, 2024
1 parent 5829257 commit 1233269
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 78 deletions.
65 changes: 0 additions & 65 deletions src/components/Container/ManageEmailsPage.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,71 +97,6 @@ const ManageEmailsPageWithDataAndTemplate = {
</div>
</template>
</list-panel>
<modal
:close-label="t('common.close')"
name="mailable"
:open="isModalOpenedMailable"
:title="currentMailable ? currentMailable.name : ''"
@close="closeMailableModal"
>
<template v-if="currentMailable">
<p>{{ currentMailable.description }}</p>
<p>
Add and edit templates that you would like to make available to the
user when they are sending this email. The default will be loaded
automatically, and the user will be able to quickly load any other
templates you add here.
</p>
<list-panel :items="currentMailable.emailTemplates">
<template #header>
<pkp-header>
<h3>Templates</h3>
<template #actions>
<pkp-button @click="openTemplate()">Add Template</pkp-button>
</template>
</pkp-header>
</template>
<template #item-subtitle="{item}">
{{ localize(item.name) }}
</template>
<template #item-actions="{item}">
<badge v-if="item.key === currentMailable.emailTemplateKey">
Default
</badge>
<pkp-button @click="openTemplate(item)">Edit</pkp-button>
<pkp-button
v-if="item.key === currentMailable.emailTemplateKey && item.id"
:is-warnable="true"
@click="confirmResetTemplate(item)"
>
Reset
</pkp-button>
<pkp-button
v-else-if="item.id"
:is-warnable="true"
@click="confirmRemoveTemplate(item)"
>
Remove
</pkp-button>
</template>
</list-panel>
</template>
</modal>
<modal
:close-label="t('common.close')"
name="template"
:open="isModalOpenedTemplate"
:title="currentTemplate ? 'Edit Template' : 'Add Template'"
@close="closeTemplateModal"
>
<pkp-form
ref="templateForm"
class="manageEmails__templateForm"
v-bind="currentTemplateForm"
@set="updateCurrentTemplateForm"
@success="templateSaved"
></pkp-form>
</modal>
</div>
`,
data() {
Expand Down
13 changes: 0 additions & 13 deletions src/components/Container/SubmissionWizardPage.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,19 +52,6 @@ const SubmissionWizardPageWithDataAndTemplate = {
<button class="-linkButton" @click="isModalOpenedConfig = true">
Change
</button>
<modal
:close-label="t('common.close')"
name="config"
:open="isModalOpenedConfig"
title="Change Submission Settings"
@close="isModalOpenedConfig = false"
>
<pkp-form
v-bind="components.reconfigureSubmission"
@set="set"
@success="openAlert('Wizard would reload.')"
/>
</modal>
</div>
<steps
class="submissionWizard__steps"
Expand Down

0 comments on commit 1233269

Please sign in to comment.