2019-09-19 17:27:37 +00:00
|
|
|
<template>
|
2019-10-18 11:05:01 +00:00
|
|
|
<Modal
|
2019-09-28 20:35:39 +00:00
|
|
|
v-if="isLoggedIn && !resettingForm"
|
2019-10-18 15:53:38 +00:00
|
|
|
:is-open="modalActivated"
|
|
|
|
view-class="post-form-modal-view"
|
2019-10-18 11:05:01 +00:00
|
|
|
@close="closeModal"
|
2019-09-19 17:27:37 +00:00
|
|
|
>
|
2019-10-18 11:05:01 +00:00
|
|
|
<div class="post-form-modal-panel panel">
|
2019-09-19 17:27:37 +00:00
|
|
|
<div class="panel-heading">
|
|
|
|
{{ $t('post_status.new_status') }}
|
|
|
|
</div>
|
|
|
|
<PostStatusForm
|
|
|
|
class="panel-body"
|
2019-09-19 18:38:55 +00:00
|
|
|
v-bind="params"
|
2019-09-19 17:27:37 +00:00
|
|
|
@posted="closeModal"
|
|
|
|
/>
|
|
|
|
</div>
|
2019-10-18 11:05:01 +00:00
|
|
|
</Modal>
|
2019-09-19 17:27:37 +00:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script src="./post_status_modal.js"></script>
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
.post-form-modal-view {
|
|
|
|
align-items: flex-start;
|
|
|
|
}
|
|
|
|
|
|
|
|
.post-form-modal-panel {
|
|
|
|
flex-shrink: 0;
|
|
|
|
margin-top: 25%;
|
|
|
|
margin-bottom: 2em;
|
|
|
|
width: 100%;
|
|
|
|
max-width: 700px;
|
|
|
|
|
|
|
|
@media (orientation: landscape) {
|
|
|
|
margin-top: 8%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|