Settings
This commit is contained in:
parent
41beedaa7b
commit
ac82ad38c4
|
|
@ -80,3 +80,5 @@ The architecture is based off these two projects:
|
||||||
|
|
||||||
We gladly accept contributions! If you'd like to get involved with development please join our [Slack group](http://slack.invoiceninja.com/).
|
We gladly accept contributions! If you'd like to get involved with development please join our [Slack group](http://slack.invoiceninja.com/).
|
||||||
|
|
||||||
|
Create pull requests for v1 against the 'legacy' branch and for v2 against the 'develop' branch.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
android.enableJetifier=true
|
android.enableJetifier=true
|
||||||
android.useAndroidX=true
|
android.useAndroidX=true
|
||||||
org.gradle.jvmargs=-Xmx1536M
|
org.gradle.jvmargs=-Xmx1536M
|
||||||
|
android.enableR8=true
|
||||||
|
|
@ -46,6 +46,18 @@ const double kMobileDialogPadding = 12;
|
||||||
const double kTabletLayoutWidth = 1000;
|
const double kTabletLayoutWidth = 1000;
|
||||||
const double kTabletDialogPadding = 250;
|
const double kTabletDialogPadding = 250;
|
||||||
|
|
||||||
|
const int kCardTypeVisa = 1;
|
||||||
|
const int kCardTypeMasterCard = 2;
|
||||||
|
const int kCardTypeAmEx = 4;
|
||||||
|
const int kCardTypeDiners = 8;
|
||||||
|
const int kCardTypeDiscover = 16;
|
||||||
|
|
||||||
|
const String kPaymentTypeVisa = '6';
|
||||||
|
const String kPaymentTypeMasterCard = '7';
|
||||||
|
const String kPaymentTypeAmEx = '8';
|
||||||
|
const String kPaymentTypeDiners = '9';
|
||||||
|
const String kPaymentTypeDiscover = '10';
|
||||||
|
|
||||||
const String kPlanFree = '';
|
const String kPlanFree = '';
|
||||||
const String kPlanPro = 'pro';
|
const String kPlanPro = 'pro';
|
||||||
const String kPlanEnterprise = 'enterprise';
|
const String kPlanEnterprise = 'enterprise';
|
||||||
|
|
|
||||||
|
|
@ -158,14 +158,6 @@ abstract class CompanyGatewayEntity extends Object
|
||||||
if (includeEdit && userCompany.canEditEntity(this)) {
|
if (includeEdit && userCompany.canEditEntity(this)) {
|
||||||
actions.add(EntityAction.edit);
|
actions.add(EntityAction.edit);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (userCompany.canEditEntity(this)) {
|
|
||||||
actions.add(EntityAction.settings);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (userCompany.canCreate(EntityType.client)) {
|
|
||||||
actions.add(EntityAction.newClient);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (actions.isNotEmpty) {
|
if (actions.isNotEmpty) {
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
import 'package:flutter/foundation.dart';
|
import 'package:flutter/foundation.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:invoiceninja_flutter/constants.dart';
|
||||||
import 'package:invoiceninja_flutter/data/models/entities.dart';
|
import 'package:invoiceninja_flutter/data/models/entities.dart';
|
||||||
import 'package:invoiceninja_flutter/redux/static/static_selectors.dart';
|
import 'package:invoiceninja_flutter/redux/static/static_selectors.dart';
|
||||||
import 'package:invoiceninja_flutter/ui/app/entity_dropdown.dart';
|
import 'package:invoiceninja_flutter/ui/app/entity_dropdown.dart';
|
||||||
|
|
@ -169,7 +170,8 @@ class _CompanyGatewayEditState extends State<CompanyGatewayEdit>
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
SwitchListTile(
|
SwitchListTile(
|
||||||
activeColor: Theme.of(context).accentColor,
|
activeColor: Theme.of(context).accentColor,
|
||||||
//title: Text(),
|
title: Text(state
|
||||||
|
.staticState.paymentTypeMap[kPaymentTypeVisa]?.name ?? ''),
|
||||||
value: false,
|
value: false,
|
||||||
//onChanged: (value) => viewModel.onChanged(companyGateway.rebuild((b) => b..)),
|
//onChanged: (value) => viewModel.onChanged(companyGateway.rebuild((b) => b..)),
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue