From ca30798910958f71517d12bd4816542830813e1f Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 5 Mar 2018 14:09:12 +0900 Subject: [PATCH] :v: --- .../desktop/views/components/post-form-window.vue | 6 +++++- src/web/app/desktop/views/components/post-form.vue | 6 +++++- src/web/app/mobile/views/components/post-form.vue | 12 ++++++++++-- 3 files changed, 20 insertions(+), 4 deletions(-) diff --git a/src/web/app/desktop/views/components/post-form-window.vue b/src/web/app/desktop/views/components/post-form-window.vue index 31a07a890e..d0b115e852 100644 --- a/src/web/app/desktop/views/components/post-form-window.vue +++ b/src/web/app/desktop/views/components/post-form-window.vue @@ -14,7 +14,8 @@ @posted="onPosted" @change-uploadings="onChangeUploadings" @change-attached-media="onChangeMedia" - @geo-attached="onGeoAttached"/> + @geo-attached="onGeoAttached" + @geo-dettached="onGeoDettached"/> @@ -45,6 +46,9 @@ export default Vue.extend({ onGeoAttached(geo) { this.geo = geo; }, + onGeoDettached() { + this.geo = null; + }, onPosted() { (this.$refs.window as any).close(); } diff --git a/src/web/app/desktop/views/components/post-form.vue b/src/web/app/desktop/views/components/post-form.vue index 22ed52b399..42d11709f9 100644 --- a/src/web/app/desktop/views/components/post-form.vue +++ b/src/web/app/desktop/views/components/post-form.vue @@ -27,7 +27,7 @@ - +

{{ '%i18n:desktop.tags.mk-post-form.text-remain%'.replace('{}', 1000 - text.length) }}

{{ 1000 - text.length }} + %fa:map-marker-alt%
@@ -23,7 +24,7 @@ - + @@ -99,6 +100,9 @@ export default Vue.extend({ enableHighAccuracy: true }); }, + removeGeo() { + this.geo = null; + }, clear() { this.text = ''; this.files = []; @@ -172,10 +176,14 @@ export default Vue.extend({ position absolute top 0 right 0 + color #657786 > .text-count line-height 50px - color #657786 + + > .geo + margin 0 8px + line-height 50px > .submit margin 8px