Skip to content

Commit

Permalink
various fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
carfup committed Feb 4, 2020
1 parent 174153f commit 7bfef84
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 11 deletions.
1 change: 1 addition & 0 deletions Carfup_PCFControls/Carfup_PCFControls.cdsproj
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
<ProjectReference Include="..\IbanValidator\IbanValidator.pcfproj" />
<ProjectReference Include="..\SirenValidator\SirenValidator.pcfproj" />
<ProjectReference Include="..\SiretValidator\SiretValidator.pcfproj" />
<ProjectReference Include="..\BICValidator\BICValidator.pcfproj" />
</ItemGroup>

<Import Project="$(MSBuildToolsPath)\Microsoft.Common.targets" />
Expand Down
2 changes: 1 addition & 1 deletion Carfup_PCFControls/Other/Solution.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<LocalizedName description="Carfup_PCFControls" languagecode="1033" />
</LocalizedNames>
<Descriptions />
<Version>1.1.0.1</Version>
<Version>1.1.0.3</Version>
<!-- Solution Package Type: Unmanaged(0)/Managed(1)/Both(2)-->
<Managed>2</Managed>
<Publisher>
Expand Down
2 changes: 1 addition & 1 deletion IbanValidator/IbanValidator/ControlManifest.Input.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest>
<control namespace="Carfup" constructor="IbanValidator" version="0.0.10" display-name-key="Carfup.IbanValidator" description-key="IBAN validator for PCF" control-type="standard">
<control namespace="Carfup" constructor="IbanValidator" version="0.0.14" display-name-key="Carfup.IbanValidator" description-key="IBAN validator for PCF" control-type="standard">
<!-- property node identifies a specific, configurable piece of data that the control expects from CDS -->
<property name="IbanValue" display-name-key="IbanValidator_IbanValue" description-key="IBAN field value" of-type="SingleLine.Text" usage="bound" required="true" />
<property name="IsValidIban" display-name-key="IbanValidator_IsValidIban" description-key="Is IBAN valid" of-type="TwoOptions" usage="bound" required="false" />
Expand Down
6 changes: 3 additions & 3 deletions IbanValidator/IbanValidator/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export class IbanValidator implements ComponentFramework.StandardControl<IInputs
else {
this._context.resources.getResource("img/" + imageName + ".png",
data => {
this._ibanValueElement.setAttribute("src", this.generateImageSrcUrl(".png", data));
this._ibanValueValidationElement.setAttribute("src", this.generateImageSrcUrl(".png", data));
},
() => {
console.log('Error when downloading ' + imageName + '.png image.');
Expand All @@ -161,9 +161,9 @@ export class IbanValidator implements ComponentFramework.StandardControl<IInputs
}
}

var iconToDisplay = this._iconValid == "" || this._iconValid == undefined ? "ValidIcon.png" : this._iconValid;
var iconToDisplay = this._iconValid == "null" || this._iconValid == "" || this._iconValid == undefined ? "IconValid" : this._iconValid;
if(!this._isValidIban){
iconToDisplay = this._iconInvalid == "" || this._iconValid == undefined ? "InvalidIcon.png" : this._iconInvalid;
iconToDisplay = this._iconValid == "null" || this._iconInvalid == "" || this._iconValid == undefined ? "IconInvalid" : this._iconInvalid;
}

this.findAndSetImage(iconToDisplay);
Expand Down
2 changes: 1 addition & 1 deletion SirenValidator/SirenValidator/ControlManifest.Input.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest>
<control namespace="Carfup" constructor="SirenValidator" version="0.0.8" display-name-key="Carfup.SirenValidator" description-key="Siren Validator for PCF" control-type="standard">
<control namespace="Carfup" constructor="SirenValidator" version="0.0.10" display-name-key="Carfup.SirenValidator" description-key="Siren Validator for PCF" control-type="standard">
<!-- property node identifies a specific, configurable piece of data that the control expects from CDS -->
<property name="SirenValue" display-name-key="SirenValidator_SirenValue" description-key="Siren field value" of-type="SingleLine.Text" usage="bound" required="true" />
<property name="IsValid" display-name-key="SiretValidator_IsValid" description-key="Is Siret valid" of-type="TwoOptions" usage="bound" required="false" />
Expand Down
4 changes: 2 additions & 2 deletions SirenValidator/SirenValidator/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,9 @@ export class SirenValidator implements ComponentFramework.StandardControl<IInput
}
}

var iconToDisplay = this._iconValid == "" || this._iconValid == undefined ? "ValidIcon" : this._iconValid;
var iconToDisplay = this._iconValid == "null" || this._iconValid == "" || this._iconValid == undefined ? "IconValid" : this._iconValid;
if(!this._isValid){
iconToDisplay = this._iconInvalid == "" || this._iconValid == undefined ? "InvalidIcon" : this._iconInvalid;
iconToDisplay = this._iconValid == "null" || this._iconInvalid == "" || this._iconValid == undefined ? "IconInvalid" : this._iconInvalid;
}

this.findAndSetImage(iconToDisplay);
Expand Down
2 changes: 1 addition & 1 deletion SiretValidator/SiretValidator/ControlManifest.Input.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest>
<control namespace="Carfup" constructor="SiretValidator" version="0.0.8" display-name-key="Carfup.SiretValidator" description-key="Siret Validator for PCF" control-type="standard">
<control namespace="Carfup" constructor="SiretValidator" version="0.0.10" display-name-key="Carfup.SiretValidator" description-key="Siret Validator for PCF" control-type="standard">
<!-- property node identifies a specific, configurable piece of data that the control expects from CDS -->
<property name="SiretValue" display-name-key="SiretValidator_SiretValue" description-key="Siret field value" of-type="SingleLine.Text" usage="bound" required="true" />
<property name="IsValid" display-name-key="SiretValidator_IsValid" description-key="Is Siret valid" of-type="TwoOptions" usage="bound" required="false" />
Expand Down
4 changes: 2 additions & 2 deletions SiretValidator/SiretValidator/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,9 @@ export class SiretValidator implements ComponentFramework.StandardControl<IInput
}
}

var iconToDisplay = this._iconValid == "" || this._iconValid == undefined ? "ValidIcon" : this._iconValid;
var iconToDisplay = this._iconValid == "null" || this._iconValid == "" || this._iconValid == undefined ? "IconValid" : this._iconValid;
if(!this._isValid){
iconToDisplay = this._iconInvalid == "" || this._iconValid == undefined ? "InvalidIcon" : this._iconInvalid;
iconToDisplay = this._iconValid == "null" || this._iconInvalid == "" || this._iconValid == undefined ? "IconInvalid" : this._iconInvalid;
}

this.findAndSetImage(iconToDisplay);
Expand Down

0 comments on commit 7bfef84

Please sign in to comment.