commit
d74afaa997
4 changed files with 27 additions and 28 deletions
|
|
@ -1,6 +1,4 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var localConfig = JSON.parse(localStorage.getItem('config'));
|
|
||||||
var defaultConfig = {
|
var defaultConfig = {
|
||||||
networkName: 'testnet',
|
networkName: 'testnet',
|
||||||
network: {
|
network: {
|
||||||
|
|
@ -99,25 +97,9 @@ var defaultConfig = {
|
||||||
port: 3001
|
port: 3001
|
||||||
},
|
},
|
||||||
passphrase: {
|
passphrase: {
|
||||||
iterations: 1000,
|
iterations: 100,
|
||||||
storageSalt: 'mjuBtGybi/4=',
|
storageSalt: 'mjuBtGybi/4=',
|
||||||
},
|
},
|
||||||
themes: ['default'],
|
themes: ['default'],
|
||||||
verbose: 1,
|
verbose: 1,
|
||||||
};
|
};
|
||||||
|
|
||||||
var config = defaultConfig;
|
|
||||||
|
|
||||||
// Merge localConfig
|
|
||||||
if (localConfig) {
|
|
||||||
var count = 0;
|
|
||||||
for (name in localConfig) {
|
|
||||||
if (localConfig.hasOwnProperty(name)) {
|
|
||||||
config[name] = localConfig[name];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
var log = function() {
|
|
||||||
if (config.verbose) console.log(arguments);
|
|
||||||
}
|
|
||||||
|
|
|
||||||
16
index.html
16
index.html
|
|
@ -27,8 +27,6 @@
|
||||||
<a class="button radius small-icon" title="Manual Refresh"
|
<a class="button radius small-icon" title="Manual Refresh"
|
||||||
ng-disabled="$root.loading"
|
ng-disabled="$root.loading"
|
||||||
ng-click="refresh()"><i class="fi-refresh"></i></a>
|
ng-click="refresh()"><i class="fi-refresh"></i></a>
|
||||||
<a class="button radius small-icon" title="Settings"
|
|
||||||
ng-disabled="$root.loading" href="#settings"><i class="fi-widget"></i></a>
|
|
||||||
<a class="button radius small-icon" title="Signout"
|
<a class="button radius small-icon" title="Signout"
|
||||||
ng-click="signout()"><i class="fi-power"></i></a>
|
ng-click="signout()"><i class="fi-power"></i></a>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -428,14 +426,18 @@
|
||||||
<span ng-show="tx.finallyRejected" class="text-warning">
|
<span ng-show="tx.finallyRejected" class="text-warning">
|
||||||
Transaction finally rejected
|
Transaction finally rejected
|
||||||
</span>
|
</span>
|
||||||
<p class="small" ng-show="!tx.missingSignatures && tx.sentTs">
|
<div ng-show="!tx.missingSignatures && tx.sentTs">
|
||||||
<i class="fi-arrow-right size-40"></i>
|
<span>
|
||||||
Sent at {{tx.sentTs | date:'medium'}} |
|
Sent
|
||||||
Transaction ID:
|
</span>
|
||||||
|
<p class="text-gray small">
|
||||||
|
{{tx.sentTs | date:'medium'}}.
|
||||||
|
ID:
|
||||||
<a href="http://{{getShortNetworkName()}}.insight.is/tx/{{tx.sentTxid}}" target="blank">
|
<a href="http://{{getShortNetworkName()}}.insight.is/tx/{{tx.sentTxid}}" target="blank">
|
||||||
{{tx.sentTxid}}
|
{{tx.sentTxid}}
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
|
</div>
|
||||||
<p class="text-gray" ng-show="!tx.finallyRejected && tx.missingSignatures==1">
|
<p class="text-gray" ng-show="!tx.finallyRejected && tx.missingSignatures==1">
|
||||||
One signature missing
|
One signature missing
|
||||||
</p>
|
</p>
|
||||||
|
|
@ -646,7 +648,7 @@
|
||||||
<button type="submit" class="button primary radius right ng-binding" ng-disabled="setupForm.$invalid || loading" disabled="disabled" ng-click="save()">
|
<button type="submit" class="button primary radius right ng-binding" ng-disabled="setupForm.$invalid || loading" disabled="disabled" ng-click="save()">
|
||||||
Save
|
Save
|
||||||
</button>
|
</button>
|
||||||
<a class="button secondary radius" href="#signin" ng-hide="$root.wallet">Signin</a>
|
<a class="button secondary radius" href="#signin" ng-hide="$root.wallet">Home</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
|
||||||
15
js/app.js
15
js/app.js
|
|
@ -1,5 +1,20 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
|
var config = defaultConfig;
|
||||||
|
var localConfig = JSON.parse(localStorage.getItem('config'));
|
||||||
|
|
||||||
|
if (localConfig) {
|
||||||
|
var count = 0;
|
||||||
|
for (name in localConfig) {
|
||||||
|
if (localConfig.hasOwnProperty(name)) {
|
||||||
|
config[name] = localConfig[name];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
var log = function() {
|
||||||
|
if (config.verbose) console.log(arguments);
|
||||||
|
}
|
||||||
|
|
||||||
var copay = require('copay');
|
var copay = require('copay');
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('copay.settings').controller('SettingsController',
|
angular.module('copay.settings').controller('SettingsController',
|
||||||
function($scope, $rootScope, $window) {
|
function($scope, $rootScope, $window, $location) {
|
||||||
$scope.title = 'Settings';
|
$scope.title = 'Settings';
|
||||||
|
|
||||||
$scope.networkName = config.networkName;
|
$scope.networkName = config.networkName;
|
||||||
|
|
@ -31,6 +31,6 @@ angular.module('copay.settings').controller('SettingsController',
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
$window.location.reload();
|
$window.location.href= $window.location.origin + $window.location.pathname;
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue