ref #6119 scheme url removed
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Jorge Penadés 2023-09-06 14:33:31 +02:00
parent f46d6355dd
commit 86ecaedb0e
2 changed files with 2 additions and 4 deletions

View File

@ -3,7 +3,7 @@
<span ng-if="$ctrl.showNumber"> <span ng-if="$ctrl.showNumber">
{{ $ctrl.phoneNumber }} {{ $ctrl.phoneNumber }}
</span> </span>
<a href="{{$ctrl.schemeUrl}}:{{$ctrl.phoneNumber}}"> <a href="tel:{{$ctrl.phoneNumber}}">
<vn-icon <vn-icon
flat flat
round round
@ -14,7 +14,7 @@
</vn-icon> </vn-icon>
</a> </a>
</span> </span>
<a ng-if="!$ctrl.icon" href="$ctrl.schemeUrl:$ctrl.phoneNumber"> <a ng-if="!$ctrl.icon" href="tel:$ctrl.phoneNumber">
{{ $ctrl.phoneNumber }} {{ $ctrl.phoneNumber }}
</a> </a>
</span> </span>

View File

@ -5,7 +5,6 @@ class Controller {
this.phoneNumber = null; this.phoneNumber = null;
this.icon = true; this.icon = true;
this.showNumber = true; this.showNumber = true;
this.schemeUrl = 'tel';
} }
} }
@ -16,6 +15,5 @@ ngModule.vnComponent('vnLinkPhone', {
phoneNumber: '<', phoneNumber: '<',
icon: '<?', icon: '<?',
showNumber: '<?', showNumber: '<?',
schemeUrl: '<?',
} }
}); });