Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

Save network not directly after create was pressed #551

Merged
merged 4 commits into from Feb 6, 2018

Conversation

Nasicus
Copy link

@Nasicus Nasicus commented Feb 3, 2018

This PR solves various things:

  • don't add network directly after create was pressed
  • an angularjs error which was displayed because $scope.apply() was called
  • only the "active network" is saved, when save was pressed (before all networks were saved). Imho both approaches are not optimal but I find it more user friendly this way
  • fix that position of settings menu changed, when there was no currency menu item:
    best bug

Fixes: #549

- remove $scope.apply() as it caused an angular error on the console
- happened when there was no currency menu-item (=> devnet)
- use ng-if instead of ng-show
@faustbrian
Copy link
Contributor

@j-a-m-l j-a-m-l self-requested a review February 5, 2018 16:04
n[data.name] = newnetwork
storageService.setGlobal('networks', n)
deferred.resolve(n[data.name])
let newNetwork = resp.data.network
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of let, using const would be better

@j-a-m-l j-a-m-l merged commit 9ce8b85 into ArkEcosystem:master Feb 6, 2018
@Nasicus Nasicus deleted the bug/save-network-not-directly branch February 6, 2018 12:51
alexbarnsley added a commit that referenced this pull request Dec 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants