Webhooks
This commit is contained in:
parent
cc17d52dd9
commit
37f00aed2a
|
|
@ -70,7 +70,7 @@ class _WebhookEditState extends State<WebhookEdit> {
|
|||
Widget build(BuildContext context) {
|
||||
final viewModel = widget.viewModel;
|
||||
final localization = AppLocalization.of(context);
|
||||
final webhook = viewModel.webhook;
|
||||
//final webhook = viewModel.webhook;
|
||||
|
||||
return EditScaffold(
|
||||
title: localization.editWebhook,
|
||||
|
|
|
|||
|
|
@ -4,7 +4,6 @@ import 'package:flutter/material.dart';
|
|||
import 'package:flutter_redux/flutter_redux.dart';
|
||||
import 'package:invoiceninja_flutter/redux/app/app_actions.dart';
|
||||
import 'package:invoiceninja_flutter/redux/ui/ui_actions.dart';
|
||||
import 'package:invoiceninja_flutter/ui/webhook/webhook_screen.dart';
|
||||
import 'package:invoiceninja_flutter/utils/platforms.dart';
|
||||
import 'package:redux/redux.dart';
|
||||
import 'package:invoiceninja_flutter/data/models/models.dart';
|
||||
|
|
|
|||
|
|
@ -21,7 +21,6 @@ class _WebhookViewState extends State<WebhookView> {
|
|||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final viewModel = widget.viewModel;
|
||||
final userCompany = viewModel.state.userCompany;
|
||||
final webhook = viewModel.webhook;
|
||||
|
||||
return ViewScaffold(
|
||||
|
|
|
|||
|
|
@ -1,10 +1,6 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_redux/flutter_redux.dart';
|
||||
import 'package:invoiceninja_flutter/data/models/models.dart';
|
||||
import 'package:invoiceninja_flutter/data/models/webhook_model.dart';
|
||||
import 'package:invoiceninja_flutter/redux/app/app_state.dart';
|
||||
import 'package:invoiceninja_flutter/ui/app/presenters/entity_presenter.dart';
|
||||
import 'package:invoiceninja_flutter/utils/formatting.dart';
|
||||
|
||||
class WebhookPresenter extends EntityPresenter {
|
||||
static List<String> getDefaultTableFields(UserCompanyEntity userCompany) {
|
||||
|
|
@ -20,8 +16,8 @@ class WebhookPresenter extends EntityPresenter {
|
|||
|
||||
@override
|
||||
Widget getField({String field, BuildContext context}) {
|
||||
final state = StoreProvider.of<AppState>(context).state;
|
||||
final webhook = entity as InvoiceEntity;
|
||||
//final state = StoreProvider.of<AppState>(context).state;
|
||||
//final webhook = entity as InvoiceEntity;
|
||||
|
||||
switch (field) {
|
||||
}
|
||||
|
|
|
|||
|
|
@ -31,7 +31,6 @@ class WebhookScreen extends StatelessWidget {
|
|||
Widget build(BuildContext context) {
|
||||
final store = StoreProvider.of<AppState>(context);
|
||||
final state = store.state;
|
||||
final company = state.company;
|
||||
final userCompany = state.userCompany;
|
||||
final localization = AppLocalization.of(context);
|
||||
final listUIState = state.uiState.webhookUIState.listUIState;
|
||||
|
|
|
|||
|
|
@ -4,7 +4,6 @@ import 'package:flutter/material.dart';
|
|||
import 'package:flutter_redux/flutter_redux.dart';
|
||||
import 'package:invoiceninja_flutter/redux/app/app_actions.dart';
|
||||
import 'package:invoiceninja_flutter/redux/ui/ui_actions.dart';
|
||||
import 'package:invoiceninja_flutter/ui/stub/stub_screen.dart';
|
||||
import 'package:invoiceninja_flutter/utils/platforms.dart';
|
||||
import 'package:redux/redux.dart';
|
||||
import 'package:invoiceninja_flutter/data/models/models.dart';
|
||||
|
|
|
|||
|
|
@ -1,10 +1,6 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_redux/flutter_redux.dart';
|
||||
import 'package:invoiceninja_flutter/data/models/models.dart';
|
||||
import 'package:invoiceninja_flutter/data/models/stub_model.dart';
|
||||
import 'package:invoiceninja_flutter/redux/app/app_state.dart';
|
||||
import 'package:invoiceninja_flutter/ui/app/presenters/entity_presenter.dart';
|
||||
import 'package:invoiceninja_flutter/utils/formatting.dart';
|
||||
|
||||
class StubPresenter extends EntityPresenter {
|
||||
|
||||
|
|
@ -23,8 +19,8 @@ class StubPresenter extends EntityPresenter {
|
|||
|
||||
@override
|
||||
Widget getField({String field, BuildContext context}) {
|
||||
final state = StoreProvider.of<AppState>(context).state;
|
||||
final stub = entity as InvoiceEntity;
|
||||
//final state = StoreProvider.of<AppState>(context).state;
|
||||
//final stub = entity as InvoiceEntity;
|
||||
|
||||
switch (field) {
|
||||
}
|
||||
|
|
|
|||
|
|
@ -31,7 +31,6 @@ class StubScreen extends StatelessWidget {
|
|||
Widget build(BuildContext context) {
|
||||
final store = StoreProvider.of<AppState>(context);
|
||||
final state = store.state;
|
||||
final company = state.company;
|
||||
final userCompany = state.userCompany;
|
||||
final localization = AppLocalization.of(context);
|
||||
final listUIState = state.uiState.stubUIState.listUIState;
|
||||
|
|
|
|||
|
|
@ -22,7 +22,6 @@ class _StubViewState extends State<StubView> {
|
|||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final viewModel = widget.viewModel;
|
||||
final userCompany = viewModel.state.userCompany;
|
||||
final stub = viewModel.stub;
|
||||
|
||||
return ViewScaffold(
|
||||
|
|
|
|||
Loading…
Reference in New Issue