Merge
This commit is contained in:
commit
c81a23bb22
|
@ -1,7 +1,16 @@
|
|||
import {module} from './module';
|
||||
|
||||
run.$inject = ['$rootScope'];
|
||||
export function run ($rootScope) {
|
||||
$rootScope.$on('$viewContentLoaded', () => {})
|
||||
const HOOK_ABORTED_TRANSITION = 3;
|
||||
|
||||
run.$inject = ['$rootScope', '$state'];
|
||||
export function run ($rootScope, $state) {
|
||||
$rootScope.$on('$viewContentLoaded', () => {});
|
||||
window.myAppErrorLog = [];
|
||||
$state.defaultErrorHandler(function(error) {
|
||||
if (error.type === HOOK_ABORTED_TRANSITION)
|
||||
window.myAppErrorLog.push(error);
|
||||
});
|
||||
}
|
||||
module.run(run);
|
||||
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<a ui-sref="clientCard.basicData({ id: {{itemClient.client.id}} })" pad-medium border-solid-bottom>
|
||||
<div class="vn-item-client-name">{{itemClient.client.name}}</div>
|
||||
<div>Id Cliente: <b>{{itemClient.client.id}}</b></div>
|
||||
<div>Teléfono: <b>{{itemClient.client.phone}}</b></div>
|
||||
<div>Población: <b>{{itemClient.client.city}}</b></div>
|
||||
<div>email: <b>{{itemClient.client.email}}</b></div>
|
||||
<div class="vn-item-client-name">{{itemClient.client.name}}</div>
|
||||
<div>Id Cliente: <b>{{itemClient.client.id}}</b></div>
|
||||
<div>Teléfono: <b>{{itemClient.client.phone}}</b></div>
|
||||
<div>Población: <b>{{itemClient.client.city}}</b></div>
|
||||
<div>email: <b>{{itemClient.client.email}}</b></div>
|
||||
</a>
|
|
@ -13,4 +13,4 @@ vn-item-client a:hover {
|
|||
|
||||
.vn-item-client-name{
|
||||
font-family: raleway-bold;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@ module.exports = function(Address) {
|
|||
|
||||
Address.observe('before save', function (ctx, next) {
|
||||
var data = getData(ctx);
|
||||
if (data.isEnabled && data.default) {
|
||||
if (data.enabled && data.default) {
|
||||
ctx.Model.update({client: data.client}, {default: false});
|
||||
}
|
||||
next();
|
||||
|
|
Loading…
Reference in New Issue