2019-12-14 12:44:35 +00:00
|
|
|
<template>
|
|
|
|
<div class="row settings--form--header">
|
|
|
|
<div class="medium-8">
|
|
|
|
<p class="title">
|
|
|
|
{{ title }}
|
|
|
|
</p>
|
|
|
|
<p class="sub-head">
|
|
|
|
{{ subTitle }}
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
<div v-if="buttonText" class="medium-4 text-right">
|
|
|
|
<woot-submit-button
|
2019-12-28 16:26:42 +00:00
|
|
|
class="default"
|
2019-12-14 12:44:35 +00:00
|
|
|
:button-text="buttonText"
|
|
|
|
:loading="isUpdating"
|
|
|
|
@click="onClick()"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
props: {
|
|
|
|
title: {
|
|
|
|
type: String,
|
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
subTitle: {
|
|
|
|
type: String,
|
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
buttonText: {
|
|
|
|
type: String,
|
2019-12-28 16:26:42 +00:00
|
|
|
default: '',
|
2019-12-14 12:44:35 +00:00
|
|
|
},
|
|
|
|
isUpdating: {
|
|
|
|
type: Boolean,
|
|
|
|
default: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
onClick() {
|
|
|
|
this.$emit('update');
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
@import '~dashboard/assets/scss/variables';
|
|
|
|
|
|
|
|
.settings--form--header {
|
2019-12-28 16:26:42 +00:00
|
|
|
align-items: center;
|
2019-12-14 12:44:35 +00:00
|
|
|
border-bottom: 1px solid $color-border;
|
2019-12-28 16:26:42 +00:00
|
|
|
display: flex;
|
2019-12-14 12:44:35 +00:00
|
|
|
margin-bottom: $space-normal;
|
|
|
|
padding: $space-normal 0;
|
2019-12-28 16:26:42 +00:00
|
|
|
|
|
|
|
.button {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.title {
|
|
|
|
margin-bottom: 0;
|
|
|
|
font-size: $font-size-default;
|
|
|
|
}
|
2019-12-14 12:44:35 +00:00
|
|
|
}
|
|
|
|
</style>
|