Hangar/frontend/components/modals/pages/DeletePageModal.vue
2021-02-09 15:56:02 -08:00

26 lines
913 B
Vue

<template>
<v-dialog v-model="dialog" persistent max-width="500">
<template #activator="{ on, attrs }">
<slot name="activator" :attrs="attrs" :on="on" />
</template>
<v-card>
<v-card-title>{{ $t('page.delete.title') }}</v-card-title>
<v-card-text>{{ $t('page.delete.text') }}</v-card-text>
<v-card-actions class="justify-end">
<v-btn text color="error" @click="dialog = false">{{ $t('general.close') }}</v-btn>
<v-btn color="warning" @click="$emit('delete')">{{ $t('general.delete') }}</v-btn>
</v-card-actions>
</v-card>
</v-dialog>
</template>
<script lang="ts">
import { Component } from 'nuxt-property-decorator';
import { HangarModal } from '../../mixins';
@Component
export default class DeletePageModal extends HangarModal {}
</script>
<style lang="scss" scoped></style>