function toEntity()

in entity-browser-frontend/app/service/navigation.js [15:30]


            function toEntity(typeId, entityId, edit) {
                if (entityId) {
                    $location.path(prefix + 'entities/' + entityId);
                    var params = {
                        typeId: null
                    };
                    if (edit) {
                        params.edit = true;
                    }
                    $location.search(params);
                } else {
                    $location.path(prefix + 'entities/new').search({
                        typeId: typeId.toString()
                    });
                }
            }