<template>
  
    <v-dialog
      v-model="dialog"
      max-width="30%"
    >
        <v-card>
            <v-card-title
                class="headline info pt-2 pb-2"
                primary-title
            >
            Informasi
            </v-card-title>
            <v-card-text class="pt-2 pb-2">
                <v-layout row>
                    <v-flex xs12 d-flex>
                        <v-layout row>
                            <v-flex pb-1 xs12>
                                <v-layout row>
                                    <v-flex v-html="xmsg" pt-2 pr-2 xs12>
                                       
                                    </v-flex>
                                </v-layout>
                            </v-flex>
                        </v-layout>
                    </v-flex>
                </v-layout> 
            </v-card-text>
            <v-divider></v-divider>
            <v-card-actions>
                <v-spacer></v-spacer>
                <v-btn
                    color="primary"
                    flat
                    @click="closeInfo()"
                >
                OK
                </v-btn>
            </v-card-actions>
        </v-card>
    </v-dialog>
  
</template>

<style scoped>
</style>

<script>
module.exports = {
    props : ['status', 'msg'],
    computed : {
        xmsg() {
            return this.msg
        },
        dialog: {
            get() {
                return this.status
            },
            set(val) {
                 this.$emit('close-dialog-info')
            }
        }
    },
    methods: {
        closeInfo() {
            this.$emit('close-dialog-info')
        }
    }
}
</script>
