Skip to content

Commit 3838c15

Browse files
committed
Fix for #46 - Added JsonProperty attributes to Parameter class in the installer
1 parent 570add9 commit 3838c15

File tree

4 files changed

+14
-9
lines changed

4 files changed

+14
-9
lines changed

src/UmbracoFileSystemProviders.Azure.Installer/Configurator/Views/Configure.ascx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@
2121
<form name="paramForm" class="form-horizontal" role="form">
2222
<div ng-repeat="param in parameters" class="control-group">
2323
<ng-form name="form">
24-
<label class="control-label" for="param.Key">{{ capitalizeFirstLetter(param.Key) }}</label>
24+
<label class="control-label" for="param.key">{{ capitalizeFirstLetter(param.key) }}</label>
2525
<div class="controls">
26-
<span ng-if="getInputType(param.Key) === 'checkbox'" ng-include="'/App_Plugins/UmbracoFileSystemProviders/Azure/Install/Configurator/Views/checkbox.htm'"></span>
27-
<span ng-if="getInputType(param.Key) === 'text'" ng-include="'/App_Plugins/UmbracoFileSystemProviders/Azure/Install/Configurator/Views/textfield.htm'"></span>
26+
<span ng-if="getInputType(param.key) === 'checkbox'" ng-include="'/App_Plugins/UmbracoFileSystemProviders/Azure/Install/Configurator/Views/checkbox.htm'"></span>
27+
<span ng-if="getInputType(param.key) === 'text'" ng-include="'/App_Plugins/UmbracoFileSystemProviders/Azure/Install/Configurator/Views/textfield.htm'"></span>
2828
</div>
29-
<span data-ng-show=" {{'form.'+param.Key+'.$dirty && form.'+param.Key+'.$error.required'}}">Required!</span>
29+
<span data-ng-show=" {{'form.'+param.key+'.$dirty && form.'+param.key+'.$error.required'}}">Required!</span>
3030
</ng-form>
3131
</div>
3232
<button preventDefault class="btn btn-primary" ng-disabled="paramForm.$invalid" ng-click="submitForm($event)">Save</button>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<input class="input-block-level"
2-
dynamic-name="param.Key"
2+
dynamic-name="param.key"
33
type="checkbox"
4-
ng-model="param.Value"
4+
ng-model="param.value"
55
ng-true-value="true"
66
ng-false-value="false">
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<input class="input-block-level"
2-
dynamic-name="param.Key"
2+
dynamic-name="param.key"
33
type="text"
4-
ng-model="param.Value"
4+
ng-model="param.value"
55
required>
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,20 @@
11
// --------------------------------------------------------------------------------------------------------------------
22
// <copyright file="Parameter.cs" company="James Jackson-South">
3-
// Copyright (c) James Jackson-South. All rights reserved. Licensed under the Apache License, Version 2.0.
3+
// Copyright (c) James Jackson-South. All rights reserved.
4+
// Licensed under the Apache License, Version 2.0.
45
// </copyright>
56
// --------------------------------------------------------------------------------------------------------------------
67

78
namespace Our.Umbraco.FileSystemProviders.Azure.Installer.Models
89
{
10+
using Newtonsoft.Json;
11+
912
public class Parameter
1013
{
14+
[JsonProperty("key")]
1115
public string Key { get; set; }
1216

17+
[JsonProperty("value")]
1318
public string Value { get; set; }
1419
}
1520
}

0 commit comments

Comments
 (0)