Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fehler bei Navigation mit Entity-Folder und ohne (mixed) #218

Open
areanet-schmid opened this issue May 12, 2021 · 0 comments
Open

Fehler bei Navigation mit Entity-Folder und ohne (mixed) #218

areanet-schmid opened this issue May 12, 2021 · 0 comments

Comments

@areanet-schmid
Copy link
Member

`var navigation = {};
var navigationPlugins = null;

      for (var entity in $rootScope.schema) {
        if(entity == '_hash' || $rootScope.schema[entity]["settings"]["hide"] || !$rootScope.permissions[entity]["readable"]) continue;

        var entityParts = entity.split('\\');
        if(entityParts.length == 1){
   
          if(!navigation['Inhalt']){
            console.log("OK");                navigation['Inhalt'] = [];
            $rootScope.navigationOpened = $rootScope.navigationOpened ? $rootScope.navigationOpened : {'Inhalt' : true};
          }

          navigation['Inhalt'].push({
            entity: entity,
            label: $rootScope.schema[entity]["settings"]["label"],
            sort: $rootScope.schema[entity]["settings"]["sort"]
          });`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant