feat: support bulk select and delete for documents (#13907)

This commit is contained in:
Sivin Varghese
2026-04-14 16:36:10 +05:30
committed by aakashb95
parent ce1ff27d29
commit b8e5a08fa6
10 changed files with 224 additions and 18 deletions
@@ -4,4 +4,12 @@ import { createStore } from '../storeFactory';
export default createStore({
name: 'CaptainDocument',
API: CaptainDocumentAPI,
actions: mutations => ({
removeBulkRecords({ commit, getters }, ids) {
const records = getters.getRecords.filter(
record => !ids.includes(record.id)
);
commit(mutations.SET, records);
},
}),
});