styling dead view
This commit is contained in:
parent
014995fd36
commit
1df951ad85
8 changed files with 159 additions and 10 deletions
|
|
@ -1,6 +1,10 @@
|
|||
'use strict';
|
||||
|
||||
angular.module('copayApp.controllers').controller('deadviewController', function($state, $scope, $ionicHistory, fingerprintService) {
|
||||
angular.module('copayApp.controllers').controller('deadviewController', function($state, $scope, $ionicHistory, fingerprintService, appConfigService, gettextCatalog) {
|
||||
$scope.$on("$ionicView.beforeEnter", function(event) {
|
||||
$scope.title = appConfigService.nameCase + ' ' + gettextCatalog.getString('is locked');
|
||||
$scope.appName = appConfigService.name;
|
||||
});
|
||||
|
||||
$scope.requestFingerprint = function() {
|
||||
fingerprintService.check('unlockingApp', function(err) {
|
||||
|
|
|
|||
|
|
@ -1199,7 +1199,7 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr
|
|||
configService.whenAvailable(function(config) {
|
||||
var nextView;
|
||||
var lockapp = config.lockapp;
|
||||
if (fingerprintService.isAvailable() && lockapp.fingerprint && lockapp.fingerprint.enabled) {
|
||||
if (platformInfo.isCordova && fingerprintService.isAvailable() && lockapp.fingerprint && lockapp.fingerprint.enabled) {
|
||||
fingerprintService.check('unlockingApp', function(err) {
|
||||
if (err) nextView = 'deadview';
|
||||
else nextView = $ionicHistory.currentStateName();
|
||||
|
|
@ -1259,7 +1259,7 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr
|
|||
configService.whenAvailable(function(config) {
|
||||
var lockapp = config.lockapp;
|
||||
startupService.ready();
|
||||
if (fingerprintService.isAvailable() && lockapp.fingerprint && lockapp.fingerprint.enabled) {
|
||||
if (platformInfo.isCordova && fingerprintService.isAvailable() && lockapp.fingerprint && lockapp.fingerprint.enabled) {
|
||||
fingerprintService.check('unlockingApp', function(err) {
|
||||
if (err) goTo('deadview');
|
||||
else goTo('tabs.home');
|
||||
|
|
|
|||
36
src/sass/views/deadview.scss
Normal file
36
src/sass/views/deadview.scss
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
#dead-view {
|
||||
@mixin img-frame {
|
||||
height: 60px;
|
||||
width: 60px;
|
||||
box-shadow: none;
|
||||
margin: auto;
|
||||
}
|
||||
.img-container-copay {
|
||||
padding: 20%;
|
||||
.big-icon-svg {
|
||||
> .bg {
|
||||
@include img-frame;
|
||||
background-image: url("../img/icon-fingerprint-copay.svg");
|
||||
}
|
||||
}
|
||||
}
|
||||
.img-container-bitpay {
|
||||
padding: 20%;
|
||||
.big-icon-svg {
|
||||
> .bg {
|
||||
@include img-frame;
|
||||
background-image: url("../img/icon-fingerprint-bitpay.svg");
|
||||
}
|
||||
}
|
||||
}
|
||||
.comments {
|
||||
text-align: center;
|
||||
.header {
|
||||
font-size: 20px;
|
||||
}
|
||||
.text-content {
|
||||
width: 90%;
|
||||
margin: 5% auto;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -47,3 +47,4 @@
|
|||
@import "integrations/integrations";
|
||||
@import "custom-amount";
|
||||
@import "pincode";
|
||||
@import "deadview";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue