Skip to content
This repository was archived by the owner on Feb 10, 2024. It is now read-only.

Commit 67cd750

Browse files
authored
Merge pull request #218 from skttl/develop
Preparing 1.2.4
2 parents f81e86b + 4c03600 commit 67cd750

File tree

6 files changed

+81
-12
lines changed

6 files changed

+81
-12
lines changed

CHANGELOG.md

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7+
8+
## [Unreleased]
9+
- Clear earlier serverside validation errors #217
10+
- Null Pointer Exception on save when no grid layout selected #211
11+
- Unsaved Changes dialog fires when hitting submit on grid editors #205
12+
13+
## [1.2.3] - 2020-06-05
14+
- #199 2 Element Types in same Nested Content freeze the Add content button in the grid layout
15+
- #202 Contenttemplates are left behind when validation is not succesfull
16+
- #203 "activeVariant.language is null" - thanks @Matthew-Wise
17+
18+
## [1.2.2] - 2020-05-14
19+
- Infinite loading when doc type has a content template #192 - thanks for reporting @OlePc
20+
- GetPreviewMarkup null reference error when getting cultures #195 - thanks for reporting *and fixing* @Matthew-Wise
21+
22+
## [1.2.1] - 2020-04-27
23+
- Disables notifications after each edit #190
24+
- Moves intrusive styling in previews to css file #188
25+
- Fixes JS error when no doctypes selected in multitype #186
26+
- Fixes bug where wrong editor gets removed when cancelling #185
27+
- Now works with custom backoffice URL #138
28+
29+
## [1.2.0] - 2020-04-12
30+
- #173 Added ValueProcessors and added processor for Umbraco.Tags
31+
- #176 Enables client side validation
32+
- #182 Enables media tracking in 8.6
33+
34+
## [1.1.0] - 2019-12-11
35+
- Changed the size attribute on grid editors to enable the new medium size in Umbraco 8.4 #167
36+
- Adds class to the preview container, so it's easier to target with custom css 47c8f5d
37+
- Check for culture variation when picking content types #154 f5453db c19a93f
38+
- Added implementation of Alias property #160
39+
40+
## [1.0.0] - 2019-08-20
41+
- Uses Infinite Editing (editorService) for editing DTGE content, instead of overlays.
42+
- Adds option to set dialog (infinite editor) size from grid editor config.
43+
- Adds Content Template aka Blueprints support for DTGE items.
44+
- Updates default placeholder for DTGEs without previews enabled.
45+
- Developers Guide updated
46+
- New minimum Umbraco version requirement: 8.1.0 - Doc Type Grid Editor will not work in lower versions!
47+
48+
[unreleased]: https://github.com/skttl/umbraco-doc-type-grid-editor/compare/1.2.2...HEAD
49+
[1.2.3]: https://github.com/skttl/umbraco-doc-type-grid-editor/compare/1.2.2...1.2.3
50+
[1.2.2]: https://github.com/skttl/umbraco-doc-type-grid-editor/compare/1.2.1...1.2.2
51+
[1.2.1]: https://github.com/skttl/umbraco-doc-type-grid-editor/compare/1.2.0...1.2.1
52+
[1.2.0]: https://github.com/skttl/umbraco-doc-type-grid-editor/compare/1.1.0...1.2.0
53+
[1.1.0]: https://github.com/skttl/umbraco-doc-type-grid-editor/compare/1.0.0...1.1.0
54+
[1.0.0]: https://github.com/skttl/umbraco-doc-type-grid-editor/releases/tag/1.0.0

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
image: Visual Studio 2017
22

33
# version format
4-
version: 1.2.3.{build}
4+
version: 1.2.4.{build}
55

66
# UMBRACO_PACKAGE_PRERELEASE_SUFFIX if a rtm release build this should be blank, otherwise if empty will default to alpha
77
# example UMBRACO_PACKAGE_PRERELEASE_SUFFIX=beta

build/package.proj

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,19 @@
2020
<PackageName>Doc Type Grid Editor</PackageName>
2121
<MinUmbracoVersion>8.6.0</MinUmbracoVersion>
2222
<Readme>Doc Type Grid Editor is an advanced grid editor for Umbraco 8</Readme>
23-
<AuthorName>Matt Brailsford, Lee Kelleher, Søren Kottal</AuthorName>
24-
<AuthorUrl>https://github.com/umco/umbraco-doc-type-grid-editor/graphs/contributors</AuthorUrl>
23+
<AuthorName>Søren Kottal, Matt Brailsford, Lee Kelleher</AuthorName>
24+
<AuthorUrl>https://github.com/skttl/umbraco-doc-type-grid-editor/graphs/contributors</AuthorUrl>
2525
<PackageLicenseName>MIT license</PackageLicenseName>
26-
<PackageLicenseUrl>http://opensource.org/licenses/MIT</PackageLicenseUrl>
27-
<ProjectUrl>https://github.com/umco/umbraco-doc-type-grid-editor</ProjectUrl>
26+
<PackageLicenseUrl>https://opensource.org/licenses/MIT</PackageLicenseUrl>
27+
<ProjectUrl>https://github.com/skttl/umbraco-doc-type-grid-editor</ProjectUrl>
2828
</PropertyGroup>
2929

3030
<!-- NUGET ONLY PROPERTIES -->
3131
<PropertyGroup>
3232
<PackageId>Our.Umbraco.DocTypeGridEditor</PackageId>
3333
<NuGetPackageName>Doc Type Grid Editor for Umbraco</NuGetPackageName>
34-
<Copyright>Copyright &#169; 2019 UMCO</Copyright>
35-
<Owners>Matt Brailsford, Lee Kelleher, Søren Kottal</Owners>
34+
<Copyright>Copyright &#169; 2020 Umbraco Community</Copyright>
35+
<Owners>Søren Kottal, Matt Brailsford, Lee Kelleher</Owners>
3636
<IconUrl>https://our.umbraco.org/media/wiki/145708/635623742802070736_dtgepng.png</IconUrl>
3737
<Tags>umbraco grid document type editor</Tags>
3838
<Language>en-GB</Language>

src/Our.Umbraco.DocTypeGridEditor/ValueProcessing/DocTypeGridEditorDataValueReference.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ public IEnumerable<UmbracoEntityReference> GetReferences(object value)
3030
var result = new List<UmbracoEntityReference>();
3131
var _propertyEditors = Current.PropertyEditors;
3232
var rawJson = value == null ? string.Empty : value is string str ? str : value.ToString();
33+
34+
if(rawJson.IsNullOrWhiteSpace()) return result;
35+
3336
DeserializeGridValue(rawJson, out var dtgeValues);
3437

3538
foreach (var control in dtgeValues)

src/Our.Umbraco.DocTypeGridEditor/Web/UI/App_Plugins/DocTypeGridEditor/Js/doctypegrideditor.controllers.js

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
angular.module("umbraco").controller("Our.Umbraco.DocTypeGridEditor.GridEditors.DocTypeGridEditor", [
1+
angular.module("umbraco").controller("Our.Umbraco.DocTypeGridEditor.GridEditors.DocTypeGridEditor", [
22

33
"$scope",
44
"$rootScope",
@@ -239,14 +239,16 @@ angular.module("umbraco").controller("Our.Umbraco.DocTypeGridEditor.Dialogs.DocT
239239
"blueprintConfig",
240240
"contentEditingHelper",
241241
"serverValidationManager",
242+
"$routeParams",
242243

243-
function ($scope, $interpolate, formHelper, contentResource, dtgeResources, dtgeUtilityService, blueprintConfig, contentEditingHelper, serverValidationManager) {
244+
function ($scope, $interpolate, formHelper, contentResource, dtgeResources, dtgeUtilityService, blueprintConfig, contentEditingHelper, serverValidationManager, $routeParams) {
244245

245246
var vm = this;
246247
vm.submit = submit;
247248
vm.close = close;
248249
vm.loading = true;
249250
vm.blueprintConfig = blueprintConfig;
251+
vm.saveButtonState = "init";
250252

251253
function cleanup() {
252254
if ($scope.model.node && $scope.model.node.id > 0) {
@@ -265,10 +267,15 @@ angular.module("umbraco").controller("Our.Umbraco.DocTypeGridEditor.Dialogs.DocT
265267

266268
function submit() {
267269
if ($scope.model.submit) {
270+
vm.saveButtonState = "busy";
268271
$scope.model.node.name = "Dtge Temp: " + $scope.model.node.key;
269272
$scope.model.node.variants[0].name = $scope.model.node.name
270273
$scope.model.node.variants[0].save = true;
271274

275+
// Reset route create to prevent showing up the changed content dialog
276+
var routeParamsCreate = $routeParams.create;
277+
$routeParams.create = undefined;
278+
272279
// save the content as a blueprint, to trigger validation
273280
var args = {
274281
saveMethod: contentResource.saveBlueprint,
@@ -282,10 +289,14 @@ angular.module("umbraco").controller("Our.Umbraco.DocTypeGridEditor.Dialogs.DocT
282289

283290
contentEditingHelper.contentEditorPerformSave(args).then(function (data) {
284291
$scope.model.submit($scope.model);
292+
// Reset original value of $routeParams.create
293+
$routeParams.create = routeParamsCreate;
285294
},
286-
function (err) {
287-
// cleanup the blueprint immediately
288-
cleanup();
295+
function (err) {
296+
// Set original value of $routeParams.create
297+
$routeParams.create = routeParamsCreate;
298+
// cleanup the blueprint immediately
299+
cleanup();
289300
});
290301
}
291302
}

src/Our.Umbraco.DocTypeGridEditor/Web/UI/App_Plugins/DocTypeGridEditor/Views/doctypegrideditor.dialog.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@
107107
</umb-button>
108108
<umb-button type="button"
109109
button-style="action"
110+
state="vm.saveButtonState"
110111
label-key="general_submit"
111112
shortcut="ctrl+s"
112113
ng-if="dialogMode == 'edit'"

0 commit comments

Comments
 (0)