Company documents
This commit is contained in:
parent
a1b20b582c
commit
1a2afee9ff
|
|
@ -173,7 +173,7 @@ Middleware<AppState> _uploadLogo(SettingsRepository settingsRepository) {
|
||||||
|
|
||||||
Middleware<AppState> _saveDocument(SettingsRepository repository) {
|
Middleware<AppState> _saveDocument(SettingsRepository repository) {
|
||||||
return (Store<AppState> store, dynamic dynamicAction, NextDispatcher next) {
|
return (Store<AppState> store, dynamic dynamicAction, NextDispatcher next) {
|
||||||
final action = dynamicAction as SaveClientDocumentRequest;
|
final action = dynamicAction as SaveCompanyDocumentRequest;
|
||||||
final state = store.state;
|
final state = store.state;
|
||||||
if (state.isEnterprisePlan) {
|
if (state.isEnterprisePlan) {
|
||||||
repository
|
repository
|
||||||
|
|
|
||||||
|
|
@ -53,6 +53,8 @@ class EditScaffold extends StatelessWidget {
|
||||||
if (isMobile(context) ||
|
if (isMobile(context) ||
|
||||||
!state.uiState.isInSettings ||
|
!state.uiState.isInSettings ||
|
||||||
state.uiState.isEditing ||
|
state.uiState.isEditing ||
|
||||||
|
state.isLoading ||
|
||||||
|
state.isSaving ||
|
||||||
state.settingsUIState.isChanged)
|
state.settingsUIState.isChanged)
|
||||||
SaveCancelButtons(
|
SaveCancelButtons(
|
||||||
saveLabel: saveLabel,
|
saveLabel: saveLabel,
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ class SaveCancelButtons extends StatelessWidget {
|
||||||
|
|
||||||
return Row(
|
return Row(
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
if (onCancelPressed != null)
|
if (onCancelPressed != null && !isSaving)
|
||||||
Builder(builder: (BuildContext context) {
|
Builder(builder: (BuildContext context) {
|
||||||
return FlatButton(
|
return FlatButton(
|
||||||
child: Text(
|
child: Text(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue