Change-Id: Ib8ccc18c910a86f06666f7dd94f67ead23a4031cchanges/75/29975/1
parent
29742e9264
commit
1b070aaa8a
@ -0,0 +1,66 @@
|
||||
<template>
|
||||
<csc-dialog
|
||||
ref="dialogComp"
|
||||
:title="title"
|
||||
:titleIcon="titleIcon"
|
||||
:opened="opened"
|
||||
>
|
||||
<div
|
||||
slot="content"
|
||||
>
|
||||
{{ message }}
|
||||
</div>
|
||||
<q-btn
|
||||
slot="actions"
|
||||
icon="exit_to_app"
|
||||
color="primary"
|
||||
flat
|
||||
@click="confirm"
|
||||
>
|
||||
{{ $t('buttons.exit') }}
|
||||
</q-btn>
|
||||
</csc-dialog>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
QBtn
|
||||
} from 'quasar-framework'
|
||||
import CscDialog from './CscDialog'
|
||||
export default {
|
||||
name: 'csc-confirm-dialog',
|
||||
data () {
|
||||
return {
|
||||
}
|
||||
},
|
||||
props: [
|
||||
'title',
|
||||
'titleIcon',
|
||||
'message',
|
||||
'opened'
|
||||
],
|
||||
components: {
|
||||
QBtn,
|
||||
CscDialog
|
||||
},
|
||||
methods: {
|
||||
open() {
|
||||
this.$refs.dialogComp.open();
|
||||
},
|
||||
close() {
|
||||
this.$refs.dialogComp.close();
|
||||
},
|
||||
cancel() {
|
||||
this.close();
|
||||
this.$emit('cancel');
|
||||
},
|
||||
confirm() {
|
||||
this.close();
|
||||
this.$emit('confirm');
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="stylus" rel="stylesheet/stylus">
|
||||
</style>
|
Loading…
Reference in new issue