summaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authormarihachi <marihachi0620@gmail.com>2020-12-19 09:53:50 +0900
committerGitHub <noreply@github.com>2020-12-19 09:53:50 +0900
commit66a11378d23da037c88a292ef9dc7f90a39d2d3a (patch)
tree4c207618806bc2da7a5a7a82853a2c4ce7993bce /src/client
parentCIでDockerイメージのpushが正しく行われるよう修正 (#6990) (diff)
downloadsharkey-66a11378d23da037c88a292ef9dc7f90a39d2d3a.tar.gz
sharkey-66a11378d23da037c88a292ef9dc7f90a39d2d3a.tar.bz2
sharkey-66a11378d23da037c88a292ef9dc7f90a39d2d3a.zip
Add delete page button (#6992)
Diffstat (limited to 'src/client')
-rw-r--r--src/client/pages/page-editor/page-editor.vue5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/client/pages/page-editor/page-editor.vue b/src/client/pages/page-editor/page-editor.vue
index 5c3bd3aa66..a9fc0cb49e 100644
--- a/src/client/pages/page-editor/page-editor.vue
+++ b/src/client/pages/page-editor/page-editor.vue
@@ -3,7 +3,10 @@
<div class="_content">
<MkA class="view" v-if="pageId" :to="`/@${ author.username }/pages/${ currentName }`"><Fa :icon="faExternalLinkSquareAlt"/> {{ $t('_pages.viewPage') }}</MkA>
- <MkButton @click="save" primary class="save" style="margin: 16px auto 16px auto;"><Fa :icon="faSave"/> {{ $t('save') }}</MkButton>
+ <div class="buttons" style="margin: 16px 0;">
+ <MkButton inline @click="save" primary class="save"><Fa :icon="faSave"/> {{ $t('save') }}</MkButton>
+ <MkButton inline @click="del" class="delete" v-if="pageId"><Fa :icon="faTrashAlt"/> {{ $t('delete') }}</MkButton>
+ </div>
<MkContainer :body-togglable="true" :expanded="true" class="_vMargin">
<template #header><Fa :icon="faCog"/> {{ $t('_pages.pageSetting') }}</template>