2023-03-24 15:15:34 -04:00
|
|
|
# Modal
|
|
|
|
|
:::raw
|
|
|
|
|
|
|
|
|
|
<DemoContainer>
|
2023-05-28 16:36:49 -04:00
|
|
|
<Button :action="() => this.$refs.reportModal.show()">Show Report Modal</Button>
|
|
|
|
|
<Button :action="() => this.$refs.confirmModal.show()">Show Confirm Modal</Button>
|
2023-03-24 15:15:34 -04:00
|
|
|
<ModalReport
|
|
|
|
|
ref="reportModal"
|
|
|
|
|
itemType="project"
|
|
|
|
|
:reportTypes="['cringitude', 'rudeness', 'notgamer', 'windowsuser']"
|
|
|
|
|
>
|
|
|
|
|
</ModalReport>
|
2023-05-28 16:36:49 -04:00
|
|
|
<ModalConfirm
|
|
|
|
|
ref="confirmModal"
|
|
|
|
|
title="Are you sure you want to delete this version?"
|
|
|
|
|
description="This will remove this version forever (like really forever)."
|
|
|
|
|
:has-to-type="true"
|
|
|
|
|
proceed-label="Delete"
|
|
|
|
|
confirmationText="Hello"
|
|
|
|
|
>
|
|
|
|
|
</ModalConfirm>
|
2023-03-24 15:15:34 -04:00
|
|
|
</DemoContainer>
|
|
|
|
|
:::
|
|
|
|
|
|
|
|
|
|
```vue
|
|
|
|
|
<Button :action="() => this.$refs.reportModal.modal.show()">Show Modal</Button>
|
|
|
|
|
<ModalReport
|
|
|
|
|
ref="reportModal"
|
|
|
|
|
itemType="project"
|
|
|
|
|
:reportTypes="['cringitude', 'rudeness', 'notgamer', 'windowsuser']"
|
|
|
|
|
/>
|
|
|
|
|
```
|