diff --git a/package-lock.json b/package-lock.json index afc203af9..0377f74cc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13962,7 +13962,7 @@ }, "os-homedir": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz", + "resolved": "http://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz", "integrity": "sha1-/7xJiDNuDoM94MFox+8VISGqf7M=", "dev": true }, @@ -13979,7 +13979,7 @@ }, "os-tmpdir": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", + "resolved": "http://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=", "dev": true }, @@ -14181,7 +14181,7 @@ }, "path-is-absolute": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "resolved": "http://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=" }, "path-is-inside": { @@ -17293,7 +17293,7 @@ }, "string_decoder": { "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "resolved": "http://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", "requires": { "safe-buffer": "~5.1.0" diff --git a/src/components/board/Board.vue b/src/components/board/Board.vue index 3d18bdfa2..50e388031 100644 --- a/src/components/board/Board.vue +++ b/src/components/board/Board.vue @@ -24,12 +24,12 @@
-
+

{{ t('deck', 'Loading board') }}

-
+
-
+

{{ t('deck', 'Board not found') }}

-
diff --git a/src/components/card/AttachmentList.vue b/src/components/card/AttachmentList.vue index 57999fd8f..67ae39117 100644 --- a/src/components/card/AttachmentList.vue +++ b/src/components/card/AttachmentList.vue @@ -38,16 +38,16 @@
- + {{ t('deck', 'Add this attachment') }} - + {{ t('deck', 'Delete Attachment') }} - + {{ t('deck', 'Restore Attachment') }} @@ -73,10 +73,6 @@ export default { type: Number, required: true, }, - editor: { - type: Object, - required: false, - }, selectable: { type: Boolean, required: false, @@ -114,24 +110,6 @@ export default { watch: { }, - methods: { - addAttachment(attachment) { - const descString = this.editor.easymde.value() - let embed = '' - if (attachment.extendedData.mimetype.includes('image')) { - embed = '!' - } - const attachmentString = embed + '[📎 ' + attachment.data + '](' + this.attachmentUrl(attachment) + ')' - this.editor.easymde.value(descString + '\n' + attachmentString) - this.modalShow = false - }, - deleteAttachment(attachment) { - this.$store.dispatch('deleteAttachment', attachment) - }, - restoreAttachment(attachment) { - this.$store.dispatch('restoreAttachment', attachment) - }, - }, } diff --git a/src/components/card/CardSidebar.vue b/src/components/card/CardSidebar.vue index 6e4174cac..7d253230f 100644 --- a/src/components/card/CardSidebar.vue +++ b/src/components/card/CardSidebar.vue @@ -178,15 +178,9 @@ @@ -376,7 +370,6 @@ export default { this.modalShow = true }, addAttachment(attachment) { - console.log('hier') const descString = this.$refs.markdownEditor.easymde.value() let embed = '' if (attachment.extendedData.mimetype.includes('image')) { @@ -511,7 +504,7 @@ export default { margin-bottom: 5px; color: var(--color-text-maxcontrast); - .icon-info, .icon-attach { + .icon-info { display: inline-block; width: 32px; height: 16px; @@ -519,6 +512,13 @@ export default { opacity: .7; } + .icon-attach { + background-size: 16px; + float: right; + margin-top: -14px; + opacity: .7; + } + .icon-toggle, .icon-rename { float: right; margin-top: -14px; @@ -604,6 +604,7 @@ export default { height: 120px; text-align: center; margin: 20px 20px 60px 20px; + padding-bottom: 20px; } .modal__content button { diff --git a/src/components/card/CardSidebarTabAttachments.vue b/src/components/card/CardSidebarTabAttachments.vue index 5291c59f8..819423aa3 100644 --- a/src/components/card/CardSidebarTabAttachments.vue +++ b/src/components/card/CardSidebarTabAttachments.vue @@ -44,7 +44,11 @@
- +
@@ -124,7 +128,12 @@ export default { clickAddNewAttachmment() { this.$refs.localAttachments.click() }, - + deleteAttachment(attachment) { + this.$store.dispatch('deleteAttachment', attachment) + }, + restoreAttachment(attachment) { + this.$store.dispatch('restoreAttachment', attachment) + }, }, }