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

Don't remove the last tab in version v7.8 #89

Closed
wants to merge 1 commit into from

Conversation

dawoe
Copy link

@dawoe dawoe commented Feb 12, 2018

This PR fixes issue #88

In v7.8 the info tab is not present in the response from contentResource.getScaffold.

So we don't need to remove the last tab

Dave

Copy link

@markglibres markglibres left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will this work inside the existing loop inside?

if (!data.tabs[t].active) { continue; }

@@ -206,8 +206,16 @@ angular.module("umbraco").controller("Our.Umbraco.DocTypeGridEditor.Dialogs.DocT

function loadNode() {
contentResource.getScaffold(-20, $scope.model.dialogData.docTypeAlias).then(function (data) {
// Remove the last tab
data.tabs.pop();

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think this will do inside the existing loop.. whatcha think?

if (!data.tabs[t].active) { continue; }

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@markglibres what loop are you talking about

@meregan what exactly does not work for you ? Because i see a report of the fix working here : https://our.umbraco.org/projects/backoffice-extensions/doc-type-grid-editor/doc-type-grid-editor-feedback/90527-dtge-dialog-editor-empty-in-umbraco-781

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dawoe the loop after it pops the last tab. i just noticed that umbraco api returns active=false for the properties tab on older versions, and no info tab on the latest release.

@dawoe
Copy link
Author

dawoe commented Feb 14, 2018

@leekelleher @mattbrailsford any timeline when this will be merged ?

This issue (#88) prevents the use of DTGE in v7.8

@leekelleher
Copy link
Collaborator

@dawoe I won't be able to look at it until next week (I'm currently on jury duty ⚖️👩‍⚖️). I'm not sure of @mattbrailsford's availablity.

@leekelleher leekelleher self-assigned this Feb 14, 2018
@mattbrailsford
Copy link
Collaborator

Fixed a different way via commit umco@ac98e71

@leekelleher
Copy link
Collaborator

@dawoe Thanks for your PR though, is it appreciated! 🙌 🤘

@naepalm
Copy link

naepalm commented Feb 15, 2018

@mattbrailsford When can we expect a release with that fix in it? ;)

@leekelleher leekelleher added this to the 0.5.0 milestone Feb 21, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants