Switch JSON to be the default storage option and changing the storage type text to say JSON is default and CSV is legacy

This commit is contained in:
Jan Skovgaard
2018-07-15 13:10:59 +02:00
committed by Sebastiaan Janssen
parent c264368042
commit 4e1e9e0687
4 changed files with 9 additions and 9 deletions

View File

@@ -2,7 +2,7 @@
{
public enum TagCacheStorageType
{
Csv,
Json
Json,
Csv
}
}
}

View File

@@ -31,7 +31,7 @@ namespace Umbraco.Core.PropertyEditors
Delimiter = ",";
ReplaceTags = true;
TagGroup = "default";
StorageType = TagCacheStorageType.Csv;
StorageType = TagCacheStorageType.Json;
}
/// <summary>
@@ -59,4 +59,4 @@ namespace Umbraco.Core.PropertyEditors
/// </summary>
public string TagGroup { get; set; }
}
}
}

View File

@@ -3,8 +3,8 @@
<select name="dropDownList"
class="umb-editor umb-dropdown"
ng-model="model.value">
<option>Csv</option>
<option>Json</option>
<option>Csv</option>
</select>
</div>
</div>

View File

@@ -19,7 +19,7 @@ namespace Umbraco.Web.PropertyEditors
_defaultPreVals = new Dictionary<string, object>
{
{"group", "default"},
{"storageType", TagCacheStorageType.Csv.ToString()}
{"storageType", TagCacheStorageType.Json.ToString()}
};
}
@@ -133,7 +133,7 @@ namespace Umbraco.Web.PropertyEditors
Fields.Add(new PreValueField(new ManifestPropertyValidator {Type = "Required"})
{
Description = "Select whether to store the tags in cache as CSV (default) or as JSON. The only benefits of storage as JSON is that you are able to have commas in a tag value",
Description = "Select whether to store the tags in cache as JSON (default) or as CSV (Legacy).",
Key = "storageType",
Name = "Storage Type",
View = "views/propertyeditors/tags/tags.prevalues.html"