Remove from selection when archiving/deleting
This commit is contained in:
parent
68cc65466e
commit
3ece3d5867
|
|
@ -35,6 +35,8 @@ final forceSelectedReducer = combineReducers<bool>([
|
||||||
]);
|
]);
|
||||||
|
|
||||||
Reducer<String> selectedIdReducer = combineReducers([
|
Reducer<String> selectedIdReducer = combineReducers([
|
||||||
|
TypedReducer<String, ArchiveCompanyGatewaySuccess>((completer, action) => ''),
|
||||||
|
TypedReducer<String, DeleteCompanyGatewaySuccess>((completer, action) => ''),
|
||||||
TypedReducer<String, PreviewEntity>((selectedId, action) =>
|
TypedReducer<String, PreviewEntity>((selectedId, action) =>
|
||||||
action.entityType == EntityType.companyGateway
|
action.entityType == EntityType.companyGateway
|
||||||
? action.entityId
|
? action.entityId
|
||||||
|
|
|
||||||
|
|
@ -60,6 +60,8 @@ String filtercreditDropdownReducer(
|
||||||
}
|
}
|
||||||
|
|
||||||
Reducer<String> selectedIdReducer = combineReducers([
|
Reducer<String> selectedIdReducer = combineReducers([
|
||||||
|
TypedReducer<String, ArchiveCreditsSuccess>((completer, action) => ''),
|
||||||
|
TypedReducer<String, DeleteCreditsSuccess>((completer, action) => ''),
|
||||||
TypedReducer<String, PreviewEntity>((selectedId, action) =>
|
TypedReducer<String, PreviewEntity>((selectedId, action) =>
|
||||||
action.entityType == EntityType.credit ? action.entityId : selectedId),
|
action.entityType == EntityType.credit ? action.entityId : selectedId),
|
||||||
TypedReducer<String, ViewCredit>((selectedId, action) => action.creditId),
|
TypedReducer<String, ViewCredit>((selectedId, action) => action.creditId),
|
||||||
|
|
|
||||||
|
|
@ -28,6 +28,8 @@ final forceSelectedReducer = combineReducers<bool>([
|
||||||
]);
|
]);
|
||||||
|
|
||||||
Reducer<String> selectedIdReducer = combineReducers([
|
Reducer<String> selectedIdReducer = combineReducers([
|
||||||
|
TypedReducer<String, ArchiveDesignsSuccess>((completer, action) => ''),
|
||||||
|
TypedReducer<String, DeleteDesignsSuccess>((completer, action) => ''),
|
||||||
TypedReducer<String, PreviewEntity>((selectedId, action) =>
|
TypedReducer<String, PreviewEntity>((selectedId, action) =>
|
||||||
action.entityType == EntityType.design ? action.entityId : selectedId),
|
action.entityType == EntityType.design ? action.entityId : selectedId),
|
||||||
TypedReducer<String, ViewDesign>(
|
TypedReducer<String, ViewDesign>(
|
||||||
|
|
|
||||||
|
|
@ -28,6 +28,8 @@ final forceSelectedReducer = combineReducers<bool>([
|
||||||
]);
|
]);
|
||||||
|
|
||||||
Reducer<String> selectedIdReducer = combineReducers([
|
Reducer<String> selectedIdReducer = combineReducers([
|
||||||
|
TypedReducer<String, ArchiveDocumentSuccess>((completer, action) => ''),
|
||||||
|
TypedReducer<String, DeleteDocumentSuccess>((completer, action) => ''),
|
||||||
TypedReducer<String, PreviewEntity>((selectedId, action) =>
|
TypedReducer<String, PreviewEntity>((selectedId, action) =>
|
||||||
action.entityType == EntityType.document ? action.entityId : selectedId),
|
action.entityType == EntityType.document ? action.entityId : selectedId),
|
||||||
TypedReducer<String, ViewDocument>((selectedId, action) => action.documentId),
|
TypedReducer<String, ViewDocument>((selectedId, action) => action.documentId),
|
||||||
|
|
|
||||||
|
|
@ -38,6 +38,8 @@ final tabIndexReducer = combineReducers<int>([
|
||||||
]);
|
]);
|
||||||
|
|
||||||
Reducer<String> selectedIdReducer = combineReducers([
|
Reducer<String> selectedIdReducer = combineReducers([
|
||||||
|
TypedReducer<String, ArchiveExpenseSuccess>((completer, action) => ''),
|
||||||
|
TypedReducer<String, DeleteExpenseSuccess>((completer, action) => ''),
|
||||||
TypedReducer<String, PreviewEntity>((selectedId, action) =>
|
TypedReducer<String, PreviewEntity>((selectedId, action) =>
|
||||||
action.entityType == EntityType.expense ? action.entityId : selectedId),
|
action.entityType == EntityType.expense ? action.entityId : selectedId),
|
||||||
TypedReducer<String, ViewExpense>((selectedId, action) => action.expenseId),
|
TypedReducer<String, ViewExpense>((selectedId, action) => action.expenseId),
|
||||||
|
|
|
||||||
|
|
@ -35,6 +35,10 @@ final forceSelectedReducer = combineReducers<bool>([
|
||||||
]);
|
]);
|
||||||
|
|
||||||
Reducer<String> selectedIdReducer = combineReducers([
|
Reducer<String> selectedIdReducer = combineReducers([
|
||||||
|
TypedReducer<String, ArchiveExpenseCategoriesSuccess>(
|
||||||
|
(completer, action) => ''),
|
||||||
|
TypedReducer<String, DeleteExpenseCategoriesSuccess>(
|
||||||
|
(completer, action) => ''),
|
||||||
TypedReducer<String, PreviewEntity>((selectedId, action) =>
|
TypedReducer<String, PreviewEntity>((selectedId, action) =>
|
||||||
action.entityType == EntityType.expenseCategory
|
action.entityType == EntityType.expenseCategory
|
||||||
? action.entityId
|
? action.entityId
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,8 @@ final forceSelectedReducer = combineReducers<bool>([
|
||||||
]);
|
]);
|
||||||
|
|
||||||
Reducer<String> selectedIdReducer = combineReducers([
|
Reducer<String> selectedIdReducer = combineReducers([
|
||||||
|
TypedReducer<String, ArchiveGroupSuccess>((completer, action) => ''),
|
||||||
|
TypedReducer<String, DeleteGroupSuccess>((completer, action) => ''),
|
||||||
TypedReducer<String, PreviewEntity>((selectedId, action) =>
|
TypedReducer<String, PreviewEntity>((selectedId, action) =>
|
||||||
action.entityType == EntityType.group ? action.entityId : selectedId),
|
action.entityType == EntityType.group ? action.entityId : selectedId),
|
||||||
TypedReducer<String, ViewGroup>(
|
TypedReducer<String, ViewGroup>(
|
||||||
|
|
|
||||||
|
|
@ -62,6 +62,8 @@ String filterInvoiceDropdownReducer(
|
||||||
}
|
}
|
||||||
|
|
||||||
Reducer<String> selectedIdReducer = combineReducers([
|
Reducer<String> selectedIdReducer = combineReducers([
|
||||||
|
TypedReducer<String, ArchiveInvoicesSuccess>((completer, action) => ''),
|
||||||
|
TypedReducer<String, DeleteInvoicesSuccess>((completer, action) => ''),
|
||||||
TypedReducer<String, PreviewEntity>((selectedId, action) =>
|
TypedReducer<String, PreviewEntity>((selectedId, action) =>
|
||||||
action.entityType == EntityType.invoice ? action.entityId : selectedId),
|
action.entityType == EntityType.invoice ? action.entityId : selectedId),
|
||||||
TypedReducer<String, ViewInvoice>((selectedId, action) => action.invoiceId),
|
TypedReducer<String, ViewInvoice>((selectedId, action) => action.invoiceId),
|
||||||
|
|
|
||||||
|
|
@ -38,6 +38,8 @@ final tabIndexReducer = combineReducers<int>([
|
||||||
]);
|
]);
|
||||||
|
|
||||||
Reducer<String> selectedIdReducer = combineReducers([
|
Reducer<String> selectedIdReducer = combineReducers([
|
||||||
|
TypedReducer<String, ArchivePaymentsSuccess>((completer, action) => ''),
|
||||||
|
TypedReducer<String, DeletePaymentsSuccess>((completer, action) => ''),
|
||||||
TypedReducer<String, PreviewEntity>((selectedId, action) =>
|
TypedReducer<String, PreviewEntity>((selectedId, action) =>
|
||||||
action.entityType == EntityType.payment ? action.entityId : selectedId),
|
action.entityType == EntityType.payment ? action.entityId : selectedId),
|
||||||
TypedReducer<String, ViewPayment>((selectedId, action) => action.paymentId),
|
TypedReducer<String, ViewPayment>((selectedId, action) => action.paymentId),
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,8 @@ final forceSelectedReducer = combineReducers<bool>([
|
||||||
]);
|
]);
|
||||||
|
|
||||||
Reducer<String> selectedIdReducer = combineReducers([
|
Reducer<String> selectedIdReducer = combineReducers([
|
||||||
|
TypedReducer<String, ArchivePaymentTermsSuccess>((completer, action) => ''),
|
||||||
|
TypedReducer<String, DeletePaymentTermsSuccess>((completer, action) => ''),
|
||||||
TypedReducer<String, PreviewEntity>((selectedId, action) =>
|
TypedReducer<String, PreviewEntity>((selectedId, action) =>
|
||||||
action.entityType == EntityType.paymentTerm
|
action.entityType == EntityType.paymentTerm
|
||||||
? action.entityId
|
? action.entityId
|
||||||
|
|
|
||||||
|
|
@ -75,6 +75,8 @@ ProductEntity _updateEditing(ProductEntity product, dynamic action) {
|
||||||
}
|
}
|
||||||
|
|
||||||
Reducer<String> selectedIdReducer = combineReducers([
|
Reducer<String> selectedIdReducer = combineReducers([
|
||||||
|
TypedReducer<String, ArchiveProductsSuccess>((completer, action) => ''),
|
||||||
|
TypedReducer<String, DeleteProductsSuccess>((completer, action) => ''),
|
||||||
TypedReducer<String, PreviewEntity>((selectedId, action) =>
|
TypedReducer<String, PreviewEntity>((selectedId, action) =>
|
||||||
action.entityType == EntityType.product ? action.entityId : selectedId),
|
action.entityType == EntityType.product ? action.entityId : selectedId),
|
||||||
TypedReducer<String, ViewProduct>((selectedId, action) => action.productId),
|
TypedReducer<String, ViewProduct>((selectedId, action) => action.productId),
|
||||||
|
|
|
||||||
|
|
@ -54,6 +54,8 @@ final cancelCompleterReducer = combineReducers<Completer<SelectableEntity>>([
|
||||||
]);
|
]);
|
||||||
|
|
||||||
Reducer<String> selectedIdReducer = combineReducers([
|
Reducer<String> selectedIdReducer = combineReducers([
|
||||||
|
TypedReducer<String, ArchiveProjectSuccess>((completer, action) => ''),
|
||||||
|
TypedReducer<String, DeleteProjectSuccess>((completer, action) => ''),
|
||||||
TypedReducer<String, PreviewEntity>((selectedId, action) =>
|
TypedReducer<String, PreviewEntity>((selectedId, action) =>
|
||||||
action.entityType == EntityType.project ? action.entityId : selectedId),
|
action.entityType == EntityType.project ? action.entityId : selectedId),
|
||||||
TypedReducer<String, ViewProject>((selectedId, action) => action.projectId),
|
TypedReducer<String, ViewProject>((selectedId, action) => action.projectId),
|
||||||
|
|
|
||||||
|
|
@ -61,6 +61,8 @@ String filterquoteDropdownReducer(
|
||||||
}
|
}
|
||||||
|
|
||||||
Reducer<String> selectedIdReducer = combineReducers([
|
Reducer<String> selectedIdReducer = combineReducers([
|
||||||
|
TypedReducer<String, ArchiveQuotesSuccess>((completer, action) => ''),
|
||||||
|
TypedReducer<String, DeleteQuotesSuccess>((completer, action) => ''),
|
||||||
TypedReducer<String, PreviewEntity>((selectedId, action) =>
|
TypedReducer<String, PreviewEntity>((selectedId, action) =>
|
||||||
action.entityType == EntityType.quote ? action.entityId : selectedId),
|
action.entityType == EntityType.quote ? action.entityId : selectedId),
|
||||||
TypedReducer<String, ViewQuote>((selectedId, action) => action.quoteId),
|
TypedReducer<String, ViewQuote>((selectedId, action) => action.quoteId),
|
||||||
|
|
|
||||||
|
|
@ -70,6 +70,10 @@ String filterRecurringInvoiceDropdownReducer(
|
||||||
}
|
}
|
||||||
|
|
||||||
Reducer<String> selectedIdReducer = combineReducers([
|
Reducer<String> selectedIdReducer = combineReducers([
|
||||||
|
TypedReducer<String, ArchiveRecurringInvoicesSuccess>(
|
||||||
|
(completer, action) => ''),
|
||||||
|
TypedReducer<String, DeleteRecurringInvoicesSuccess>(
|
||||||
|
(completer, action) => ''),
|
||||||
TypedReducer<String, PreviewEntity>((selectedId, action) =>
|
TypedReducer<String, PreviewEntity>((selectedId, action) =>
|
||||||
action.entityType == EntityType.recurringInvoice
|
action.entityType == EntityType.recurringInvoice
|
||||||
? action.entityId
|
? action.entityId
|
||||||
|
|
|
||||||
|
|
@ -43,6 +43,8 @@ final tabIndexReducer = combineReducers<int>([
|
||||||
]);
|
]);
|
||||||
|
|
||||||
Reducer<String> selectedIdReducer = combineReducers([
|
Reducer<String> selectedIdReducer = combineReducers([
|
||||||
|
TypedReducer<String, ArchiveSubscriptionsSuccess>((completer, action) => ''),
|
||||||
|
TypedReducer<String, DeleteSubscriptionsSuccess>((completer, action) => ''),
|
||||||
TypedReducer<String, PreviewEntity>((selectedId, action) =>
|
TypedReducer<String, PreviewEntity>((selectedId, action) =>
|
||||||
action.entityType == EntityType.subscription
|
action.entityType == EntityType.subscription
|
||||||
? action.entityId
|
? action.entityId
|
||||||
|
|
|
||||||
|
|
@ -57,6 +57,8 @@ TaskTime editTaskTime(TaskTime taskTime, dynamic action) {
|
||||||
*/
|
*/
|
||||||
|
|
||||||
Reducer<String> selectedIdReducer = combineReducers([
|
Reducer<String> selectedIdReducer = combineReducers([
|
||||||
|
TypedReducer<String, ArchiveTaskSuccess>((completer, action) => ''),
|
||||||
|
TypedReducer<String, DeleteTaskSuccess>((completer, action) => ''),
|
||||||
TypedReducer<String, PreviewEntity>((selectedId, action) =>
|
TypedReducer<String, PreviewEntity>((selectedId, action) =>
|
||||||
action.entityType == EntityType.task ? action.entityId : selectedId),
|
action.entityType == EntityType.task ? action.entityId : selectedId),
|
||||||
TypedReducer<String, ViewTask>((selectedId, action) => action.taskId),
|
TypedReducer<String, ViewTask>((selectedId, action) => action.taskId),
|
||||||
|
|
|
||||||
|
|
@ -30,6 +30,8 @@ final forceSelectedReducer = combineReducers<bool>([
|
||||||
]);
|
]);
|
||||||
|
|
||||||
Reducer<String> selectedIdReducer = combineReducers([
|
Reducer<String> selectedIdReducer = combineReducers([
|
||||||
|
TypedReducer<String, ArchiveTaskStatusesSuccess>((completer, action) => ''),
|
||||||
|
TypedReducer<String, DeleteTaskStatusesSuccess>((completer, action) => ''),
|
||||||
TypedReducer<String, PreviewEntity>((selectedId, action) =>
|
TypedReducer<String, PreviewEntity>((selectedId, action) =>
|
||||||
action.entityType == EntityType.taskStatus
|
action.entityType == EntityType.taskStatus
|
||||||
? action.entityId
|
? action.entityId
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,8 @@ final forceSelectedReducer = combineReducers<bool>([
|
||||||
]);
|
]);
|
||||||
|
|
||||||
Reducer<String> selectedIdReducer = combineReducers([
|
Reducer<String> selectedIdReducer = combineReducers([
|
||||||
|
TypedReducer<String, ArchiveTaxRatesSuccess>((completer, action) => ''),
|
||||||
|
TypedReducer<String, DeleteTaxRatesSuccess>((completer, action) => ''),
|
||||||
TypedReducer<String, PreviewEntity>((selectedId, action) =>
|
TypedReducer<String, PreviewEntity>((selectedId, action) =>
|
||||||
action.entityType == EntityType.taxRate ? action.entityId : selectedId),
|
action.entityType == EntityType.taxRate ? action.entityId : selectedId),
|
||||||
TypedReducer<String, ViewTaxRate>(
|
TypedReducer<String, ViewTaxRate>(
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,8 @@ final forceSelectedReducer = combineReducers<bool>([
|
||||||
]);
|
]);
|
||||||
|
|
||||||
Reducer<String> selectedIdReducer = combineReducers([
|
Reducer<String> selectedIdReducer = combineReducers([
|
||||||
|
TypedReducer<String, ArchiveTokensSuccess>((completer, action) => ''),
|
||||||
|
TypedReducer<String, DeleteTokensSuccess>((completer, action) => ''),
|
||||||
TypedReducer<String, PreviewEntity>((selectedId, action) =>
|
TypedReducer<String, PreviewEntity>((selectedId, action) =>
|
||||||
action.entityType == EntityType.token ? action.entityId : selectedId),
|
action.entityType == EntityType.token ? action.entityId : selectedId),
|
||||||
TypedReducer<String, ViewToken>(
|
TypedReducer<String, ViewToken>(
|
||||||
|
|
|
||||||
|
|
@ -30,6 +30,8 @@ final forceSelectedReducer = combineReducers<bool>([
|
||||||
]);
|
]);
|
||||||
|
|
||||||
Reducer<String> selectedIdReducer = combineReducers([
|
Reducer<String> selectedIdReducer = combineReducers([
|
||||||
|
TypedReducer<String, ArchiveUserSuccess>((completer, action) => ''),
|
||||||
|
TypedReducer<String, DeleteUserSuccess>((completer, action) => ''),
|
||||||
TypedReducer<String, PreviewEntity>((selectedId, action) =>
|
TypedReducer<String, PreviewEntity>((selectedId, action) =>
|
||||||
action.entityType == EntityType.user ? action.entityId : selectedId),
|
action.entityType == EntityType.user ? action.entityId : selectedId),
|
||||||
TypedReducer<String, ViewUser>((String selectedId, action) => action.userId),
|
TypedReducer<String, ViewUser>((String selectedId, action) => action.userId),
|
||||||
|
|
|
||||||
|
|
@ -66,6 +66,8 @@ VendorContactEntity editVendorContact(
|
||||||
}
|
}
|
||||||
|
|
||||||
Reducer<String> selectedIdReducer = combineReducers([
|
Reducer<String> selectedIdReducer = combineReducers([
|
||||||
|
TypedReducer<String, ArchiveVendorSuccess>((completer, action) => ''),
|
||||||
|
TypedReducer<String, DeleteVendorSuccess>((completer, action) => ''),
|
||||||
TypedReducer<String, PreviewEntity>((selectedId, action) =>
|
TypedReducer<String, PreviewEntity>((selectedId, action) =>
|
||||||
action.entityType == EntityType.vendor ? action.entityId : selectedId),
|
action.entityType == EntityType.vendor ? action.entityId : selectedId),
|
||||||
TypedReducer<String, ViewVendor>((selectedId, action) => action.vendorId),
|
TypedReducer<String, ViewVendor>((selectedId, action) => action.vendorId),
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,8 @@ final forceSelectedReducer = combineReducers<bool>([
|
||||||
]);
|
]);
|
||||||
|
|
||||||
Reducer<String> selectedIdReducer = combineReducers([
|
Reducer<String> selectedIdReducer = combineReducers([
|
||||||
|
TypedReducer<String, ArchiveWebhooksSuccess>((completer, action) => ''),
|
||||||
|
TypedReducer<String, DeleteWebhooksSuccess>((completer, action) => ''),
|
||||||
TypedReducer<String, PreviewEntity>((selectedId, action) =>
|
TypedReducer<String, PreviewEntity>((selectedId, action) =>
|
||||||
action.entityType == EntityType.webhook ? action.entityId : selectedId),
|
action.entityType == EntityType.webhook ? action.entityId : selectedId),
|
||||||
TypedReducer<String, ViewWebhook>(
|
TypedReducer<String, ViewWebhook>(
|
||||||
|
|
|
||||||
|
|
@ -41,6 +41,8 @@ final tabIndexReducer = combineReducers<int>([
|
||||||
]);
|
]);
|
||||||
|
|
||||||
Reducer<String> selectedIdReducer = combineReducers([
|
Reducer<String> selectedIdReducer = combineReducers([
|
||||||
|
TypedReducer<String, ArchiveStubsSuccess>((completer, action) => ''),
|
||||||
|
TypedReducer<String, DeleteStubsSuccess>((completer, action) => ''),
|
||||||
TypedReducer<String, PreviewEntity>((selectedId, action) =>
|
TypedReducer<String, PreviewEntity>((selectedId, action) =>
|
||||||
action.entityType == EntityType.stub
|
action.entityType == EntityType.stub
|
||||||
? action.entityId
|
? action.entityId
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue