mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-11-24 01:03:35 +01:00
52 lines
1.3 KiB
Vue
52 lines
1.3 KiB
Vue
<template>
|
|
<div class="columns is-centered">
|
|
<div class="form-column column is-two-thirds-tablet is-half-desktop is-one-third-widescreen is-one-quarter-fullhd">
|
|
<h1 class="title" v-html="title" v-if="title"></h1>
|
|
<slot />
|
|
<p v-if="showTag">
|
|
<notification :message="fail" type="is-danger" :isFixed="hasFixedNotification" v-if="fail" />
|
|
<notification :message="success" type="is-success" :isFixed="hasFixedNotification" v-if="success" />
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name: 'FormWrapper',
|
|
|
|
data() {
|
|
return {
|
|
|
|
}
|
|
},
|
|
|
|
computed: {
|
|
showTag: function() {
|
|
return (this.fail || this.success) ? true : false
|
|
}
|
|
},
|
|
|
|
props: {
|
|
title: {
|
|
type: String,
|
|
default: ''
|
|
},
|
|
|
|
fail: {
|
|
type: String,
|
|
default: ''
|
|
},
|
|
|
|
success: {
|
|
type: String,
|
|
default: ''
|
|
},
|
|
|
|
hasFixedNotification: {
|
|
type: Boolean,
|
|
default: false
|
|
},
|
|
}
|
|
}
|
|
</script> |