mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 08:44:04 +01:00
53 lines
1.4 KiB
Vue
53 lines
1.4 KiB
Vue
<template>
|
|
<v-dialog :value="show" lazy persistent max-width="350" class="p-confirm-dialog" @keydown.esc="cancel">
|
|
<v-card raised elevation="24">
|
|
<v-container fluid class="pb-2 pr-2 pl-2">
|
|
<v-layout row wrap>
|
|
<v-flex xs3 text-xs-center>
|
|
<v-icon size="54" color="secondary-dark lighten-1">{{ icon }}</v-icon>
|
|
</v-flex>
|
|
<v-flex xs9 text-xs-left align-self-center>
|
|
<div class="subheading pr-1">
|
|
<translate>Are you sure?</translate>
|
|
</div>
|
|
</v-flex>
|
|
<v-flex xs12 text-xs-right class="pt-3">
|
|
<v-btn depressed color="secondary-light" class="action-cancel compact" @click.stop="cancel">
|
|
<translate key="Cancel">Cancel</translate>
|
|
</v-btn>
|
|
<v-btn color="primary-button" depressed dark class="action-confirm compact" @click.stop="confirm">
|
|
<translate key="Delete">Yes</translate>
|
|
</v-btn>
|
|
</v-flex>
|
|
</v-layout>
|
|
</v-container>
|
|
</v-card>
|
|
</v-dialog>
|
|
</template>
|
|
<script>
|
|
export default {
|
|
name: "PConfirmDialog",
|
|
props: {
|
|
show: {
|
|
type: Boolean,
|
|
default: false,
|
|
},
|
|
icon: {
|
|
type: String,
|
|
default: "delete_outline",
|
|
},
|
|
},
|
|
data() {
|
|
return {};
|
|
},
|
|
methods: {
|
|
cancel() {
|
|
this.$emit("cancel");
|
|
},
|
|
confirm() {
|
|
this.$emit("confirm");
|
|
},
|
|
},
|
|
};
|
|
</script>
|