Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
schedules
schedules
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 11
    • Issues 11
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • SRCT
  • schedulesschedules
  • Issues
  • #16

Closed
Open
Opened Aug 20, 2018 by Andrew J Hrdy@ahrdyMaintainer
  • Report abuse
  • New issue
Report abuse New issue

Make the generate button invisible when there are no classes

Expected Behavior

The generate button should be invisible when there are no classes added to the schedule. Since the generate button is a bootstrap outline button, it makes more sense to remove the button instead of disabling it because it is hard to differentiate between disabled and not disabled outline buttons.

Actual Behavior

The generate button exists.

Steps to Reproduce the Behavior

Press the shopping cart icon before adding a class.

Tips

When the page loads, you can access what sections are in the schedule with the @cart variable. If this variable is empty, hide the export button and show a message prompting the user to add some sections to the schedule.

  • File with the generate button
Edited Sep 24, 2018 by Zac Wood
To upload designs, you'll need to enable LFS and have admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: srct/schedules#16