diff options
author | Carl Schwan <carl@carlschwan.eu> | 2022-10-27 13:49:47 +0200 |
---|---|---|
committer | Carl Schwan <carl@carlschwan.eu> | 2022-10-27 13:49:47 +0200 |
commit | fe78b4c1980ef63a5ef16cf9407ba13cbdfdb169 (patch) | |
tree | 244ece84eaf68ec48942912ecf42606a868d182f /src | |
parent | b751689289efe25f515b54bdeb192b2021f0070c (diff) |
Minor changes in the frontend
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'src')
-rw-r--r-- | src/components/Composer/Composer.vue | 1 | ||||
-rw-r--r-- | src/components/TimelineAvatar.vue | 2 | ||||
-rw-r--r-- | src/components/TimelinePost.vue | 2 | ||||
-rw-r--r-- | src/store/timeline.js | 3 |
4 files changed, 4 insertions, 4 deletions
diff --git a/src/components/Composer/Composer.vue b/src/components/Composer/Composer.vue index f5f5f9ff..e8004851 100644 --- a/src/components/Composer/Composer.vue +++ b/src/components/Composer/Composer.vue @@ -466,6 +466,7 @@ export default { for (const preview of this.previewUrls) { // TODO send the summary and other props too formData.append('attachments', preview.result) + formData.append('attachmentDescriptions', preview.description) } if (this.replyTo) { formData.append('replyTo', this.replyTo.id) diff --git a/src/components/TimelineAvatar.vue b/src/components/TimelineAvatar.vue index 0df4a43c..7f1861f7 100644 --- a/src/components/TimelineAvatar.vue +++ b/src/components/TimelineAvatar.vue @@ -41,7 +41,7 @@ export default { <style scoped> .post-avatar { position: relative; - padding: 18px 10px 10px 10px; + padding: 5px 10px 10px 5px; height: 52px; width: 52px; } diff --git a/src/components/TimelinePost.vue b/src/components/TimelinePost.vue index cb3db859..ba8eae66 100644 --- a/src/components/TimelinePost.vue +++ b/src/components/TimelinePost.vue @@ -246,7 +246,7 @@ export default { .post-timestamp { width: 120px; text-align: right; - flex-shrink: 0; + flex-grow: 2; } .post-actions { diff --git a/src/store/timeline.js b/src/store/timeline.js index f80b72b0..84e3a27f 100644 --- a/src/store/timeline.js +++ b/src/store/timeline.js @@ -146,7 +146,7 @@ const actions = { }, async post(context, post) { try { - const { data } = axios.post(generateUrl('apps/social/api/v1/post'), post, { + const { data } = await axios.post(generateUrl('apps/social/api/v1/post'), post, { headers: { 'Content-Type': 'multipart/form-data' } @@ -154,7 +154,6 @@ const actions = { Logger.info('Post created with token ' + data.result.token) } catch (error) { OC.Notification.showTemporary('Failed to create a post') - console.error(error) Logger.error('Failed to create a post', { 'error': error.response }) } }, |