Coder Social home page Coder Social logo

Comments (4)

sachinbhutani avatar sachinbhutani commented on September 26, 2024

Not sure what's causing this as the error is inside the tabular package, but it most likely is not finding value for one of the following

  • user's email
  • user's name,
  • admin role on the user
  • user creation date.

can you try using a simple custom template with User collection as mentioned in the 'Custom Template' section of the documentation ?

from flow-db-admin.

tcastelli avatar tcastelli commented on September 26, 2024

thanks!, after doing many tests, i've figured out that I have some users that are created without a mail(they have a name but the mail can be set after they log in for the first time), any idea on how to change the admin panel to make it work with this kind of users?

from flow-db-admin.

sachinbhutani avatar sachinbhutani commented on September 26, 2024

I can do a quick patch for it.
try the change in this PR
#5

from flow-db-admin.

tcastelli avatar tcastelli commented on September 26, 2024

That PR is not enough, after playing arround, changing this in startup.cofee makes it work

 {
      data: 'emails'
      title: 'Email'
      render: (value) ->
        if value then value[0].address else ''
      searchable: true
    }
   {
            data: 'emails'
            title: 'Mail'
            # TODO: use `tmpl`
            createdCell: (node, cellData, rowData) ->
                if cellData
                    return $(node).html(Blaze.toHTMLWithData(Template.adminUsersMailBtn, { emails: cellData }, node))
                return
            width: '40px'
        }

If you cand add it to the PR it will be helpful! :)

from flow-db-admin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.