Skip to content

Commit

Permalink
chore: minor story houskeeping & cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasphil committed Sep 13, 2024
1 parent fc270b9 commit 8d4cba9
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion src/primevue/confirmDialog/confirmDialog.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export const Default: Story = {
</template>
</ConfirmDialog>
<PrimevueButton @click="showConfirm()" label="Save" />
<PrimevueButton @click="showConfirm()" label="Show dialog" />
`,
}),
};
36 changes: 18 additions & 18 deletions src/primevue/toast/toast.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ export const Success: Story = {
const showToast = () => {
toast.add({
severity: "success",
summary: "Verkündung erfolgreich hochgeladen",
detail: "Sie können mit der Arbeit an der neuen Verkündung beginnen.",
summary: "Success message",
detail: "This is a success message.",
});
};

Expand All @@ -50,7 +50,7 @@ export const Info: Story = {
const showToast = () => {
toast.add({
severity: "info",
summary: "Info Message",
summary: "Info message",
detail: "This is an informational message.",
});
};
Expand All @@ -73,7 +73,7 @@ export const WarningWithAutoClose: Story = {
const showToast = () => {
toast.add({
severity: "warn",
summary: "This is a warning",
summary: "Warning message",
detail: "This is a warning message.",
life: 3000,
});
Expand All @@ -97,8 +97,8 @@ export const Error: Story = {
const showToast = () => {
toast.add({
severity: "error",
summary: "Error",
detail: "An error occurred.",
summary: "Error message",
detail: "This is an error message.",
});
};

Expand All @@ -120,23 +120,23 @@ export const MultipleToasts: Story = {
const showToast = () => {
toast.add({
severity: "success",
summary: "Verkündung erfolgreich hochgeladen",
detail: "Sie können mit der Arbeit an der neuen Verkündung beginnen.",
summary: "Success",
detail: "Something worked.",
});
toast.add({
severity: "info",
summary: "Info",
detail: "Message Content",
detail: "Some info",
});
toast.add({
severity: "warn",
summary: "Warn",
detail: "Message Content",
detail: "Something kind of worked.",
});
toast.add({
severity: "error",
summary: "Error",
detail: "Message Content",
detail: "Something didn't work.",
});
};

Expand All @@ -158,8 +158,8 @@ export const NotClosableShortLived: Story = {
const showToast = () => {
toast.add({
severity: "error",
summary: "Error",
detail: "An error occurred.",
summary: "Error message",
detail: "This is an error message.",
closable: false,
life: 5000,
});
Expand All @@ -183,8 +183,8 @@ export const WithTemplate: Story = {
const showToast = () => {
toast.add({
severity: "info",
summary: "Info",
detail: "Message content",
summary: "Info message",
detail: "This is an informational message.",
});
};

Expand All @@ -194,16 +194,16 @@ export const WithTemplate: Story = {
<Toast v-bind="args">
<template #message="slot">
<div class="w-320">
<p class="ris-label1-bold">{{ slot.message.summary }}</p>
<p class="ris-label1-regular">{{ slot.message.detail }}</p>
<p class="ris-body2-bold">{{ slot.message.summary }}</p>
<p class="ris-body2-regular">{{ slot.message.detail }}</p>
<div class="mt-16 flex gap-8">
<PrimevueButton severity="secondary" label="Action 1" />
<PrimevueButton severity="primary" label="Action 2" />
</div>
</div>
</template>
</Toast>
<PrimevueButton label="Error" @click="showToast()" />
<PrimevueButton label="With template" @click="showToast()" />
`,
}),
};

0 comments on commit 8d4cba9

Please sign in to comment.