|
|
@ -1,18 +1,21 @@
|
|
|
|
<template lang="pug">
|
|
|
|
<template lang="pug">
|
|
|
|
.modal(v-bind:class='{ "is-active": isShown }')
|
|
|
|
transition(:duration="400")
|
|
|
|
.modal-background
|
|
|
|
.modal(v-show='isShown', v-cloak)
|
|
|
|
.modal-container
|
|
|
|
transition(name='modal-background')
|
|
|
|
.modal-content
|
|
|
|
.modal-background(v-show='isShown')
|
|
|
|
header.is-indigo Move document
|
|
|
|
.modal-container
|
|
|
|
section
|
|
|
|
transition(name='modal-content')
|
|
|
|
label.label Enter the new document path:
|
|
|
|
.modal-content(v-show='isShown')
|
|
|
|
p.control.is-fullwidth(v-bind:class='{ "is-loading": isLoading }')
|
|
|
|
header.is-indigo Move document
|
|
|
|
input.input(type='text', placeholder='page-name', v-model='movePath', ref='movePageInput', @keyup.enter='move', @keyup.esc='cancel')
|
|
|
|
section
|
|
|
|
span.help.is-red(v-show='isInvalid') This document path is invalid or not allowed!
|
|
|
|
label.label Enter the new document path:
|
|
|
|
span.note Note that moving or renaming documents can lead to broken links. Make sure to edit any page that links to this document afterwards!
|
|
|
|
p.control.is-fullwidth(v-bind:class='{ "is-loading": isLoading }')
|
|
|
|
footer
|
|
|
|
input.input(type='text', placeholder='page-name', v-model='movePath', ref='movePageInput', @keyup.enter='move', @keyup.esc='cancel')
|
|
|
|
a.button.is-grey.is-outlined(v-on:click='cancel') Discard
|
|
|
|
span.help.is-red(v-show='isInvalid') This document path is invalid or not allowed!
|
|
|
|
a.button.is-indigo(v-on:click='move') Move
|
|
|
|
span.note Note that moving or renaming documents can lead to broken links. Make sure to edit any page that links to this document afterwards!
|
|
|
|
|
|
|
|
footer
|
|
|
|
|
|
|
|
a.button.is-grey.is-outlined(v-on:click='cancel') Discard
|
|
|
|
|
|
|
|
a.button.is-indigo(v-on:click='move') Move
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|