Skip to content

Commit 904486d

Browse files
Merge pull request cgwire#1679 from NicoPennec/main
Various fixes
2 parents b09bccc + 956d7c9 commit 904486d

File tree

9 files changed

+32
-7
lines changed

9 files changed

+32
-7
lines changed

src/components/mixins/entity_list.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -557,6 +557,8 @@ export const entityListMixin = {
557557
},
558558

559559
startBrowsing(event) {
560+
if (event.target.tagName === 'INPUT') return
561+
560562
document.body.style.cursor = 'grabbing'
561563
this.isBrowsingX = true
562564
this.isBrowsingY = true

src/store/modules/assets.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1262,7 +1262,10 @@ const mutations = {
12621262
},
12631263

12641264
[CLEAR_SELECTED_TASKS](state, validationInfo) {
1265-
if (tasksStore.state.nbSelectedTasks > 0) {
1265+
if (
1266+
tasksStore.state.nbSelectedValidations > 0 ||
1267+
tasksStore.state.nbSelectedTasks > 0
1268+
) {
12661269
const tmpGrid = JSON.parse(JSON.stringify(state.assetSelectionGrid))
12671270
state.assetSelectionGrid = clearSelectionGrid(tmpGrid)
12681271
}

src/store/modules/edits.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -991,7 +991,10 @@ const mutations = {
991991
},
992992

993993
[CLEAR_SELECTED_TASKS](state, validationInfo) {
994-
if (tasksStore.state.nbSelectedTasks > 0) {
994+
if (
995+
tasksStore.state.nbSelectedValidations > 0 ||
996+
tasksStore.state.nbSelectedTasks > 0
997+
) {
995998
const tmpGrid = JSON.parse(JSON.stringify(state.editSelectionGrid))
996999
state.editSelectionGrid = clearSelectionGrid(tmpGrid)
9971000
}

src/store/modules/episodes.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -918,7 +918,10 @@ const mutations = {
918918
},
919919

920920
[CLEAR_SELECTED_TASKS](state, validationInfo) {
921-
if (taskStore.state.nbSelectedTasks > 0) {
921+
if (
922+
taskStore.state.nbSelectedValidations > 0 ||
923+
taskStore.state.nbSelectedTasks > 0
924+
) {
922925
const tmpGrid = JSON.parse(JSON.stringify(state.episodeSelectionGrid))
923926
state.episodeSelectionGrid = clearSelectionGrid(tmpGrid)
924927
}

src/store/modules/people.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -771,7 +771,10 @@ const mutations = {
771771
},
772772

773773
[CLEAR_SELECTED_TASKS](state, validationInfo) {
774-
if (taskStore.state.nbSelectedTasks > 0) {
774+
if (
775+
taskStore.state.nbSelectedValidations > 0 ||
776+
taskStore.state.nbSelectedTasks > 0
777+
) {
775778
state.personTaskSelectionGrid = clearSelectionGrid(
776779
state.personTaskSelectionGrid
777780
)

src/store/modules/sequences.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -984,7 +984,10 @@ const mutations = {
984984
},
985985

986986
[CLEAR_SELECTED_TASKS](state, validationInfo) {
987-
if (taskStore.state.nbSelectedTasks > 0) {
987+
if (
988+
taskStore.state.nbSelectedValidations > 0 ||
989+
taskStore.state.nbSelectedTasks > 0
990+
) {
988991
const tmpGrid = JSON.parse(JSON.stringify(state.sequenceSelectionGrid))
989992
state.sequenceSelectionGrid = clearSelectionGrid(tmpGrid)
990993
}

src/store/modules/shots.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1186,7 +1186,10 @@ const mutations = {
11861186
},
11871187

11881188
[CLEAR_SELECTED_TASKS](state, validationInfo) {
1189-
if (tasksStore.state.nbSelectedTasks > 0) {
1189+
if (
1190+
tasksStore.state.nbSelectedValidations > 0 ||
1191+
tasksStore.state.nbSelectedTasks > 0
1192+
) {
11901193
const tmpGrid = JSON.parse(JSON.stringify(state.shotSelectionGrid))
11911194
state.shotSelectionGrid = clearSelectionGrid(tmpGrid)
11921195
}

src/store/modules/tasks.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1168,6 +1168,8 @@ const mutations = {
11681168
if (state.nbSelectedTasks > 0) {
11691169
state.selectedTasks = new Map()
11701170
state.nbSelectedTasks = 0
1171+
}
1172+
if (state.nbSelectedValidations > 0) {
11711173
state.selectedValidations = new Map()
11721174
state.nbSelectedValidations = 0
11731175
}

src/store/modules/user.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -710,8 +710,11 @@ const mutations = {
710710
)
711711
if (filterGroup) {
712712
Object.assign(filterGroup, userFilterGroup)
713+
// update the shared status of filters in group
713714
state.userFilters?.[typeName]?.[projectId].forEach(filter => {
714-
filter.is_shared = userFilterGroup.is_shared
715+
if (filter.search_filter_group_id === userFilterGroup.id) {
716+
filter.is_shared = userFilterGroup.is_shared
717+
}
715718
})
716719
}
717720
})

0 commit comments

Comments
 (0)