40 lines
651 B
Vue
40 lines
651 B
Vue
<template>
|
|
<div class="max-w-3xl py-12 mx-auto">
|
|
<Button
|
|
icon-left="code"
|
|
@click="$resources.ping.fetch"
|
|
:loading="$resources.ping.loading"
|
|
>
|
|
Click to send 'ping' request
|
|
</Button>
|
|
<div>
|
|
{{ $resources.ping.data }}
|
|
</div>
|
|
<pre>{{ $resources.ping }}</pre>
|
|
|
|
<Button @click="showDialog = true">Open Dialog</Button>
|
|
<Dialog title="Title" v-model="showDialog"> Dialog content </Dialog>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import { Dialog } from 'frappe-ui'
|
|
|
|
export default {
|
|
name: 'Home',
|
|
data() {
|
|
return {
|
|
showDialog: false,
|
|
}
|
|
},
|
|
resources: {
|
|
ping: {
|
|
url: 'ping',
|
|
},
|
|
},
|
|
components: {
|
|
Dialog,
|
|
},
|
|
}
|
|
</script>
|