diff --git a/src/components/card/CardSidebar.vue b/src/components/card/CardSidebar.vue
index 0dcaec879..32b74b5cc 100644
--- a/src/components/card/CardSidebar.vue
+++ b/src/components/card/CardSidebar.vue
@@ -132,11 +132,6 @@
href="https://deck.readthedocs.io/en/latest/Markdown/"
target="_blank"
class="icon icon-info" />
-
-
- {{ t('deck', 'Add Attachment') }}
-
-
{{ t('deck', 'Edit description') }}
@@ -145,6 +140,11 @@
{{ t('deck', 'View description') }}
+
+
+ {{ t('deck', 'Add Attachment') }}
+
+
+ @input="updateDescription"
+ @blur="saveDescription" />
{
- if (!Object.prototype.hasOwnProperty.call(this.copiedCard, 'descriptionLastEdit') || this.descriptionSaving) {
- return
- }
- this.descriptionSaving = true
- await this.$store.dispatch('updateCardDesc', this.copiedCard)
- delete this.copiedCard.descriptionLastEdit
- this.descriptionSaving = false
+ await this.saveDescription()
}, 2500)
-
},
closeSidebar() {
diff --git a/webpack.common.js b/webpack.common.js
index d5f36ed1f..ac9189533 100644
--- a/webpack.common.js
+++ b/webpack.common.js
@@ -10,7 +10,8 @@ module.exports = {
filename: '[name].js',
path: __dirname + '/js',
publicPath: '/js/',
- jsonpFunction: 'webpackJsonpOCADeck'
+ jsonpFunction: 'webpackJsonpOCADeck',
+ chunkFilename: '[name].js?v=[contenthash]',
},
module: {
rules: [