diff --git a/src/components/lists/TaskList.vue b/src/components/lists/TaskList.vue
index 1f1220325d..d5de9cee22 100644
--- a/src/components/lists/TaskList.vue
+++ b/src/components/lists/TaskList.vue
@@ -669,6 +669,7 @@ export default {
const startDate = moment(task.start_date)
const dueDate = task.due_date ? moment(task.due_date) : null
data = getDatesFromStartDate(
+ this.organisation,
startDate,
dueDate,
minutesToDays(this.organisation, estimation)
diff --git a/src/components/pages/Breakdown.vue b/src/components/pages/Breakdown.vue
index e990e63dcc..10d500d36d 100644
--- a/src/components/pages/Breakdown.vue
+++ b/src/components/pages/Breakdown.vue
@@ -989,12 +989,13 @@ export default {
const entityIds = Object.keys(this.selection).filter(
key => this.selection[key]
)
-
for (const entityId of entityIds) {
- const nbOccurences = this.casting[entityId].find(
+ const asset = this.casting[entityId].find(
asset => asset.asset_id === assetId
- ).nb_occurences
- await this.removeOneAsset(assetId, entityId, nbOccurences)
+ )
+ if (asset) {
+ await this.removeOneAsset(assetId, entityId, asset.nb_occurences)
+ }
}
},
diff --git a/src/components/pages/Shot.vue b/src/components/pages/Shot.vue
index 3411c2f1bb..3db02b0e25 100644
--- a/src/components/pages/Shot.vue
+++ b/src/components/pages/Shot.vue
@@ -239,11 +239,14 @@
/>
{{ asset.asset_name }}
-
+
({{ asset.nb_occurences }})
-
+
-
+
diff --git a/src/components/pages/TaskType.vue b/src/components/pages/TaskType.vue
index f0da69fff0..2c6afae48b 100644
--- a/src/components/pages/TaskType.vue
+++ b/src/components/pages/TaskType.vue
@@ -1119,6 +1119,7 @@ export default {
const startDate = parseDate(task.start_date)
const dueDate = task.due_date ? parseDate(task.due_date) : null
data = getDatesFromStartDate(
+ this.organisation,
startDate,
dueDate,
minutesToDays(this.organisation, estimation),
diff --git a/src/components/pages/breakdown/AssetBlock.vue b/src/components/pages/breakdown/AssetBlock.vue
index 0af873abe6..dae9d4efc2 100644
--- a/src/components/pages/breakdown/AssetBlock.vue
+++ b/src/components/pages/breakdown/AssetBlock.vue
@@ -10,8 +10,10 @@
v-if="!textMode"
>
-
+ 1
-
- 1
+
+ + 1
+ - 1
+
-
+
{{ asset.name }} ({{ nbOccurences }})
-
- 1
@@ -94,13 +95,11 @@ export default {
methods: {
removeOneAsset(event) {
- this.pauseEvent(event)
- this.$emit('remove-one', this.asset.asset_id, this.nbOccurences)
+ this.$emit('remove-one', this.asset.asset_id)
},
addOneAsset(event) {
- this.pauseEvent(event)
- this.$emit('add-one', this.asset.asset_id, this.nbOccurences)
+ this.$emit('add-one', this.asset.asset_id)
},
shortenName(name) {
@@ -200,7 +199,7 @@ export default {
font-weight: bold;
font-size: 0.9em;
opacity: 0;
- z-index: 2;
+ z-index: 3;
}
.asset-add-1 {
diff --git a/src/components/pages/breakdown/ShotLine.vue b/src/components/pages/breakdown/ShotLine.vue
index 31f440eac3..b7f5706b69 100644
--- a/src/components/pages/breakdown/ShotLine.vue
+++ b/src/components/pages/breakdown/ShotLine.vue
@@ -1,10 +1,9 @@