This commit is contained in:
parent
f1dc809147
commit
9536fdba58
|
@ -1,13 +1,14 @@
|
||||||
<a
|
<span ng-if="$ctrl.phoneNumber">
|
||||||
ng-if="$ctrl.phoneNumber"
|
{{$ctrl.phoneNumber}}
|
||||||
href="tel:{{$ctrl.phoneNumber}}"
|
<a href="tel:{{$ctrl.phoneNumber}}">
|
||||||
>
|
<vn-icon
|
||||||
<vn-icon
|
flat
|
||||||
flat
|
round
|
||||||
round
|
icon="phone"
|
||||||
icon="phone"
|
title="MicroSIP"
|
||||||
title="MicroSIP"
|
ng-click="$event.stopPropagation();"
|
||||||
ng-click="$event.stopPropagation();"
|
>
|
||||||
>
|
</vn-icon>
|
||||||
</vn-icon>
|
</a>
|
||||||
</a>
|
</span>
|
||||||
|
<span ng-if="!$ctrl.phoneNumber">-</span>
|
||||||
|
|
|
@ -3,8 +3,6 @@ import './style.scss';
|
||||||
class Controller {
|
class Controller {
|
||||||
constructor() {
|
constructor() {
|
||||||
this.phoneNumber = null;
|
this.phoneNumber = null;
|
||||||
this.icon = true;
|
|
||||||
this.showNumber = true;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -13,7 +11,5 @@ ngModule.vnComponent('vnLinkPhone', {
|
||||||
controller: Controller,
|
controller: Controller,
|
||||||
bindings: {
|
bindings: {
|
||||||
phoneNumber: '<',
|
phoneNumber: '<',
|
||||||
icon: '<?',
|
|
||||||
showNumber: '<?',
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -46,14 +46,14 @@
|
||||||
value="{{$ctrl.summary.contact}}">
|
value="{{$ctrl.summary.contact}}">
|
||||||
</vn-label-value>
|
</vn-label-value>
|
||||||
<vn-label-value label="Phone">
|
<vn-label-value label="Phone">
|
||||||
{{$ctrl.summary.phone | dashIfEmpty}}
|
|
||||||
<vn-link-phone
|
<vn-link-phone
|
||||||
phone-number="$ctrl.summary.phone"
|
phone-number="$ctrl.summary.phone"
|
||||||
></vn-link-phone>
|
></vn-link-phone>
|
||||||
|
|
||||||
</vn-label-value>
|
</vn-label-value>
|
||||||
<vn-label-value label="Mobile">
|
<vn-label-value label="Mobile">
|
||||||
{{$ctrl.summary.mobile | dashIfEmpty}}
|
|
||||||
<vn-link-phone
|
<vn-link-phone
|
||||||
phone-number="$ctrl.summary.mobile"
|
phone-number="$ctrl.summary.mobile"
|
||||||
></vn-link-phone>
|
></vn-link-phone>
|
||||||
|
|
|
@ -49,7 +49,6 @@
|
||||||
value="{{$ctrl.summary.landed | date: 'dd/MM/yyyy HH:mm'}}">
|
value="{{$ctrl.summary.landed | date: 'dd/MM/yyyy HH:mm'}}">
|
||||||
</vn-label-value>
|
</vn-label-value>
|
||||||
<vn-label-value label="Phone">
|
<vn-label-value label="Phone">
|
||||||
{{$ctrl.summary.address.phone | dashIfEmpty}}
|
|
||||||
<vn-link-phone
|
<vn-link-phone
|
||||||
phone-number="$ctrl.summary.address.phone"
|
phone-number="$ctrl.summary.address.phone"
|
||||||
></vn-link-phone>
|
></vn-link-phone>
|
||||||
|
|
|
@ -26,7 +26,6 @@
|
||||||
<vn-label-value
|
<vn-label-value
|
||||||
label="Phone"
|
label="Phone"
|
||||||
>
|
>
|
||||||
{{summary.phone | dashIfEmpty}}
|
|
||||||
<vn-link-phone
|
<vn-link-phone
|
||||||
phone-number="summary.phone"
|
phone-number="summary.phone"
|
||||||
></vn-link-phone>
|
></vn-link-phone>
|
||||||
|
|
|
@ -84,7 +84,6 @@
|
||||||
<vn-label-value label="Address phone"
|
<vn-label-value label="Address phone"
|
||||||
ng-if="$ctrl.summary.address.phone != null"
|
ng-if="$ctrl.summary.address.phone != null"
|
||||||
>
|
>
|
||||||
{{$ctrl.summary.address.phone | dashIfEmpty}}
|
|
||||||
<vn-link-phone
|
<vn-link-phone
|
||||||
phone-number="$ctrl.summary.address.phone"
|
phone-number="$ctrl.summary.address.phone"
|
||||||
></vn-link-phone>
|
></vn-link-phone>
|
||||||
|
@ -92,21 +91,18 @@
|
||||||
<vn-label-value label="Address mobile"
|
<vn-label-value label="Address mobile"
|
||||||
ng-if="$ctrl.summary.address.mobile != null"
|
ng-if="$ctrl.summary.address.mobile != null"
|
||||||
>
|
>
|
||||||
{{$ctrl.summary.address.mobile | dashIfEmpty}}
|
|
||||||
<vn-link-phone
|
<vn-link-phone
|
||||||
phone-number="$ctrl.summary.address.mobile"
|
phone-number="$ctrl.summary.address.mobile"
|
||||||
></vn-link-phone>
|
></vn-link-phone>
|
||||||
</vn-label-value>
|
</vn-label-value>
|
||||||
<vn-label-value label="Client phone"
|
<vn-label-value label="Client phone"
|
||||||
ng-if="$ctrl.summary.client.phone != null">
|
ng-if="$ctrl.summary.client.phone != null">
|
||||||
{{$ctrl.summary.client.phone | dashIfEmpty}}
|
|
||||||
<vn-link-phone
|
<vn-link-phone
|
||||||
phone-number="$ctrl.summary.client.phone"
|
phone-number="$ctrl.summary.client.phone"
|
||||||
></vn-link-phone>
|
></vn-link-phone>
|
||||||
</vn-label-value>
|
</vn-label-value>
|
||||||
<vn-label-value label="Client mobile"
|
<vn-label-value label="Client mobile"
|
||||||
ng-if="$ctrl.summary.client.mobile != null">
|
ng-if="$ctrl.summary.client.mobile != null">
|
||||||
{{$ctrl.summary.client.mobile | dashIfEmpty}}
|
|
||||||
<vn-link-phone
|
<vn-link-phone
|
||||||
phone-number="$ctrl.summary.client.mobile"
|
phone-number="$ctrl.summary.client.mobile"
|
||||||
></vn-link-phone>
|
></vn-link-phone>
|
||||||
|
|
|
@ -38,7 +38,6 @@
|
||||||
<vn-label-value
|
<vn-label-value
|
||||||
label="Phone"
|
label="Phone"
|
||||||
>
|
>
|
||||||
{{$ctrl.worker.phone | dashIfEmpty}}
|
|
||||||
<vn-link-phone
|
<vn-link-phone
|
||||||
phone-number="$ctrl.worker.phone"
|
phone-number="$ctrl.worker.phone"
|
||||||
></vn-link-phone>
|
></vn-link-phone>
|
||||||
|
@ -46,7 +45,6 @@
|
||||||
<vn-label-value
|
<vn-label-value
|
||||||
label="Extension"
|
label="Extension"
|
||||||
>
|
>
|
||||||
{{$ctrl.worker.sip.extension | dashIfEmpty}}
|
|
||||||
<vn-link-phone
|
<vn-link-phone
|
||||||
phone-number="$ctrl.worker.sip.extension"
|
phone-number="$ctrl.worker.sip.extension"
|
||||||
></vn-link-phone>
|
></vn-link-phone>
|
||||||
|
|
|
@ -43,20 +43,17 @@
|
||||||
</span>
|
</span>
|
||||||
</vn-label-value>
|
</vn-label-value>
|
||||||
<vn-label-value label="Mobile extension">
|
<vn-label-value label="Mobile extension">
|
||||||
{{worker.mobileExtension | dashIfEmpty}}
|
|
||||||
<vn-link-phone
|
<vn-link-phone
|
||||||
phone-number="worker.mobileExtension"
|
phone-number="worker.mobileExtension"
|
||||||
></vn-link-phone>
|
></vn-link-phone>
|
||||||
</vn-label-value>
|
</vn-label-value>
|
||||||
<vn-label-value label="Business phone">
|
<vn-label-value label="Business phone">
|
||||||
{{worker.phone | dashIfEmpty}}
|
|
||||||
<vn-link-phone
|
<vn-link-phone
|
||||||
phone-number="worker.phone"
|
phone-number="worker.phone"
|
||||||
></vn-link-phone>
|
></vn-link-phone>
|
||||||
</vn-label-value>
|
</vn-label-value>
|
||||||
<vn-label-value label="Personal phone"
|
<vn-label-value label="Personal phone"
|
||||||
>
|
>
|
||||||
{{worker.client.phone | dashIfEmpty}}
|
|
||||||
<vn-link-phone
|
<vn-link-phone
|
||||||
phone-number="worker.client.phone"
|
phone-number="worker.client.phone"
|
||||||
></vn-link-phone>
|
></vn-link-phone>
|
||||||
|
|
Loading…
Reference in New Issue