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) {
|
||||
return (Store<AppState> store, dynamic dynamicAction, NextDispatcher next) {
|
||||
final action = dynamicAction as SaveClientDocumentRequest;
|
||||
final action = dynamicAction as SaveCompanyDocumentRequest;
|
||||
final state = store.state;
|
||||
if (state.isEnterprisePlan) {
|
||||
repository
|
||||
|
|
|
|||
|
|
@ -53,6 +53,8 @@ class EditScaffold extends StatelessWidget {
|
|||
if (isMobile(context) ||
|
||||
!state.uiState.isInSettings ||
|
||||
state.uiState.isEditing ||
|
||||
state.isLoading ||
|
||||
state.isSaving ||
|
||||
state.settingsUIState.isChanged)
|
||||
SaveCancelButtons(
|
||||
saveLabel: saveLabel,
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ class SaveCancelButtons extends StatelessWidget {
|
|||
|
||||
return Row(
|
||||
children: <Widget>[
|
||||
if (onCancelPressed != null)
|
||||
if (onCancelPressed != null && !isSaving)
|
||||
Builder(builder: (BuildContext context) {
|
||||
return FlatButton(
|
||||
child: Text(
|
||||
|
|
|
|||
Loading…
Reference in New Issue