Skip to content

Commit

Permalink
Merge branch 'release/0.3.12'
Browse files Browse the repository at this point in the history
  • Loading branch information
RealBonus committed Jun 21, 2018
2 parents ac59bd9 + b4c7d32 commit 17eea8e
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 7 deletions.
2 changes: 2 additions & 0 deletions Adamant/Stories/Account/AccountRoutes.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,7 @@ extension AdamantScene {
c.dialogService = r.resolve(DialogService.self)
return c
})

private init() {}
}
}
2 changes: 2 additions & 0 deletions Adamant/Stories/NodesEditor/NodesEditorRoutes.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ extension AdamantScene {
c.apiService = r.resolve(ApiService.self)
return c
})

private init() {}
}
}

11 changes: 6 additions & 5 deletions Adamant/Stories/NodesEditor/NodesListViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,12 @@ class NodesListViewController: FormViewController {

override func viewDidLoad() {
super.viewDidLoad()
navigationItem.rightBarButtonItem = UIBarButtonItem(barButtonSystemItem: .edit, target: self, action: #selector(editModeStart))
navigationItem.title = String.adamantLocalized.nodesList.title
navigationOptions = .Disabled

if self.navigationController?.viewControllers.count == 1 {
let cancelBtn = UIBarButtonItem(barButtonSystemItem: .cancel, target: self, action: #selector(NodesListViewController.close))

self.navigationItem.setLeftBarButton(cancelBtn, animated: false)
if navigationController?.viewControllers.count == 1 {
let done = UIBarButtonItem(barButtonSystemItem: .done, target: self, action: #selector(NodesListViewController.close))
navigationItem.rightBarButtonItem = done
}


Expand Down Expand Up @@ -154,6 +152,8 @@ class NodesListViewController: FormViewController {
}
}

/*
Ячейки, удаляемые в режиме редактирования, никак не обрабатываются
@objc func editModeStart() {
navigationItem.rightBarButtonItem = UIBarButtonItem(barButtonSystemItem: .done, target: self, action: #selector(editModeStop))
tableView.setEditing(true, animated: true)
Expand All @@ -163,6 +163,7 @@ class NodesListViewController: FormViewController {
navigationItem.rightBarButtonItem = UIBarButtonItem(barButtonSystemItem: .edit, target: self, action: #selector(editModeStart))
tableView.setEditing(false, animated: true)
}
*/
}


Expand Down
2 changes: 2 additions & 0 deletions Adamant/Stories/Shared/SharedRoutes.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,7 @@ extension AdamantScene {
controller.dialogService = r.resolve(DialogService.self)
return controller
})

private init() {}
}
}
6 changes: 4 additions & 2 deletions Adamant/Stories/Transactions/TransactionsRoutes.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ extension AdamantScene {
let c = TransactionsViewController(nibName: "TransactionsViewController", bundle: nil)
c.accountService = r.resolve(AccountService.self)
c.transfersProvider = r.resolve(TransfersProvider.self)
c.chatsProvider = r.resolve(ChatsProvider.self)
c.dialogService = r.resolve(DialogService.self)
c.chatsProvider = r.resolve(ChatsProvider.self)
c.dialogService = r.resolve(DialogService.self)
c.router = r.resolve(Router.self)
return c
})
Expand All @@ -28,5 +28,7 @@ extension AdamantScene {
c.router = r.resolve(Router.self)
return c
})

private init() {}
}
}

0 comments on commit 17eea8e

Please sign in to comment.