-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: added view event data function (#38)
- Loading branch information
1 parent
6fa7e80
commit 162c030
Showing
2 changed files
with
52 additions
and
6 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
waltid-web-wallet/web/src/components/modals/ViewEventDataModal.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,25 @@ | ||
<template> | ||
<div> | ||
<CloseButton /> | ||
<div class="flex min-h-full items-end p-4 sm:items-center sm:p-0"> | ||
<div class="sm:flex sm:items-start"> | ||
<div class="shadow p-3 mt-2 font-mono"> | ||
<h3 class="font-semibold mb-2">{{ props.title }}</h3> | ||
<pre v-if="props.data!=null">{{ JSON.stringify(props.data, null, 2) }}</pre> | ||
<pre v-else>No data available.</pre> | ||
</div> | ||
</div> | ||
</div> | ||
<OkButton /> | ||
</div> | ||
</template> | ||
|
||
<script lang="ts" setup> | ||
import CloseButton from "./CloseButton.vue"; | ||
import OkButton from "./OkButton.vue"; | ||
const props = defineProps<{ | ||
title: string; | ||
data: object; | ||
}>(); | ||
</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