Second tap to edit
This commit is contained in:
parent
3931a39966
commit
86ba092ffd
|
|
@ -137,8 +137,7 @@ class ClientListVM {
|
|||
onClientTap: (context, client) {
|
||||
if (store.state.clientListState.isInMultiselect()) {
|
||||
handleClientAction(context, [client], EntityAction.toggleMultiselect);
|
||||
} else if (isDesktop(context) &&
|
||||
state.clientUIState.editing.id == client.id) {
|
||||
} else if (isDesktop(context) && state.uiState.isEditing) {
|
||||
viewEntity(context: context, entity: client);
|
||||
} else if (isDesktop(context) &&
|
||||
state.clientUIState.selectedId == client.id) {
|
||||
|
|
|
|||
|
|
@ -156,8 +156,7 @@ class CreditListVM extends EntityListVM {
|
|||
if (store.state.invoiceListState.isInMultiselect()) {
|
||||
handleInvoiceAction(
|
||||
context, [credit], EntityAction.toggleMultiselect);
|
||||
} else if (isDesktop(context) &&
|
||||
state.creditUIState.editing.id == credit.id) {
|
||||
} else if (isDesktop(context) && state.uiState.isEditing) {
|
||||
viewEntity(context: context, entity: credit);
|
||||
} else if (isDesktop(context) &&
|
||||
state.creditUIState.selectedId == credit.id) {
|
||||
|
|
|
|||
|
|
@ -141,8 +141,7 @@ class ExpenseListVM {
|
|||
if (store.state.expenseListState.isInMultiselect()) {
|
||||
handleExpenseAction(
|
||||
context, [expense], EntityAction.toggleMultiselect);
|
||||
} else if (isDesktop(context) &&
|
||||
state.expenseUIState.editing.id == expense.id) {
|
||||
} else if (isDesktop(context) && state.uiState.isEditing) {
|
||||
viewEntity(context: context, entity: expense);
|
||||
} else if (isDesktop(context) &&
|
||||
state.expenseUIState.selectedId == expense.id) {
|
||||
|
|
|
|||
|
|
@ -197,8 +197,7 @@ class InvoiceListVM extends EntityListVM {
|
|||
if (store.state.invoiceListState.isInMultiselect()) {
|
||||
handleInvoiceAction(
|
||||
context, [invoice], EntityAction.toggleMultiselect);
|
||||
} else if (isDesktop(context) &&
|
||||
state.invoiceUIState.editing.id == invoice.id) {
|
||||
} else if (isDesktop(context) && state.uiState.isEditing) {
|
||||
viewEntity(context: context, entity: invoice);
|
||||
} else if (isDesktop(context) &&
|
||||
state.invoiceUIState.selectedId == invoice.id) {
|
||||
|
|
|
|||
|
|
@ -136,8 +136,7 @@ class PaymentListVM {
|
|||
if (store.state.paymentListState.isInMultiselect()) {
|
||||
handlePaymentAction(
|
||||
context, [payment], EntityAction.toggleMultiselect);
|
||||
} else if (isDesktop(context) &&
|
||||
state.paymentUIState.editing.id == payment.id) {
|
||||
} else if (isDesktop(context) && state.uiState.isEditing) {
|
||||
viewEntity(context: context, entity: payment);
|
||||
} else if (isDesktop(context) &&
|
||||
state.paymentUIState.selectedId == payment.id) {
|
||||
|
|
|
|||
|
|
@ -119,8 +119,7 @@ class ProductListVM {
|
|||
if (store.state.productListState.isInMultiselect()) {
|
||||
handleProductAction(
|
||||
context, [product], EntityAction.toggleMultiselect);
|
||||
} else if (isDesktop(context) &&
|
||||
state.productUIState.editing.id == product.id) {
|
||||
} else if (isDesktop(context) && state.uiState.isEditing) {
|
||||
viewEntity(context: context, entity: product);
|
||||
} else if (isDesktop(context) &&
|
||||
state.productUIState.selectedId == product.id) {
|
||||
|
|
|
|||
|
|
@ -139,8 +139,7 @@ class ProjectListVM {
|
|||
if (store.state.projectListState.isInMultiselect()) {
|
||||
handleProjectAction(
|
||||
context, [project], EntityAction.toggleMultiselect);
|
||||
} else if (isDesktop(context) &&
|
||||
state.projectUIState.editing.id == project.id) {
|
||||
} else if (isDesktop(context) && state.uiState.isEditing) {
|
||||
viewEntity(context: context, entity: project);
|
||||
} else if (isDesktop(context) &&
|
||||
state.projectUIState.selectedId == project.id) {
|
||||
|
|
|
|||
|
|
@ -155,8 +155,7 @@ class QuoteListVM extends EntityListVM {
|
|||
if (store.state.invoiceListState.isInMultiselect()) {
|
||||
handleInvoiceAction(
|
||||
context, [quote], EntityAction.toggleMultiselect);
|
||||
} else if (isDesktop(context) &&
|
||||
state.quoteUIState.editing.id == quote.id) {
|
||||
} else if (isDesktop(context) && state.uiState.isEditing) {
|
||||
viewEntity(context: context, entity: quote);
|
||||
} else if (isDesktop(context) &&
|
||||
state.quoteUIState.selectedId == quote.id) {
|
||||
|
|
|
|||
|
|
@ -144,8 +144,7 @@ class TaskListVM {
|
|||
onTaskTap: (context, task) {
|
||||
if (store.state.taskListState.isInMultiselect()) {
|
||||
handleTaskAction(context, [task], EntityAction.toggleMultiselect);
|
||||
} else if (isDesktop(context) &&
|
||||
state.taskUIState.editing.id == task.id) {
|
||||
} else if (isDesktop(context) && state.uiState.isEditing) {
|
||||
viewEntity(context: context, entity: task);
|
||||
} else if (isDesktop(context) &&
|
||||
state.taskUIState.selectedId == task.id) {
|
||||
|
|
|
|||
|
|
@ -129,8 +129,7 @@ class VendorListVM {
|
|||
onVendorTap: (context, vendor) {
|
||||
if (store.state.vendorListState.isInMultiselect()) {
|
||||
handleVendorAction(context, [vendor], EntityAction.toggleMultiselect);
|
||||
} else if (isDesktop(context) &&
|
||||
state.vendorUIState.editing.id == vendor.id) {
|
||||
} else if (isDesktop(context) && state.uiState.isEditing) {
|
||||
viewEntity(context: context, entity: vendor);
|
||||
} else if (isDesktop(context) &&
|
||||
state.vendorUIState.selectedId == vendor.id) {
|
||||
|
|
|
|||
|
|
@ -132,8 +132,7 @@ class StubListVM {
|
|||
if (store.state.stubListState.isInMultiselect()) {
|
||||
handleStubAction(
|
||||
context, [stub], EntityAction.toggleMultiselect);
|
||||
} else if (isDesktop(context) &&
|
||||
state.stubUIState.editing.id == stub.id) {
|
||||
} else if (isDesktop(context) && state.uiState.isEditing) {
|
||||
viewEntity(context: context, entity: stub);
|
||||
} else if (isDesktop(context) &&
|
||||
state.stubUIState.selectedId == stub.id) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue