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"
|
2019-10-21 19:36:03 +00:00
|
|
|
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">
|
2019-10-18 16:13:11 +00:00
|
|
|
.modal-view.post-form-modal-view {
|
2019-09-19 17:27:37 +00:00
|
|
|
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>
|