Conversation
…les contains '(disabled)'
Admins can disable any modules in the system
|
Kudos, SonarCloud Quality Gate passed!
|
|
@jhurst502 Can you add a gif or pictures of your front end changes? |
|
@jhurst502 It looks like you have merge conflicts and code smells |
|
@jhurst502 Request a few changes, let me know if you have any questions |
Co-authored-by: Jason Gallavin <jasongallavin@gmail.com>
Co-authored-by: Jason Gallavin <jasongallavin@gmail.com>
Co-authored-by: Jason Gallavin <jasongallavin@gmail.com>
Co-authored-by: Jason Gallavin <jasongallavin@gmail.com>
|
Kudos, SonarCloud Quality Gate passed! |
| loading={this.state.startingModule} | ||
| className='btn btn-primary' | ||
| onClick={this.hasUserModule() ? undefined : this.startModule} | ||
| toolTipText={'This lab is currently disabled'} |
There was a problem hiding this comment.
This tooltip text only shows when the button is disabled but there is no logic here to disable the button
There was a problem hiding this comment.
Disabled is set in the LabEnvironment.tsx from the disabled property of the module in the DB.
| {editing && Boolean(values.id) && <Button style={{marginRight: '1rem'}} type='button' variant='danger' onClick={onCancel}>Cancel</Button>} | ||
| {!editing && <Button type='button' onClick={() => setEditing(true)}>Edit</Button>} | ||
| {editing && <LoadingButton loading={isSubmitting} type='submit' label={values.id ? 'Save' : 'Create'}/>} | ||
| {editing && <LoadingButton loading={isSubmitting} type='submit' label={values.id ? 'Save' : 'Create'} toolTipText={'This lab is currently disabled'}/>} |
There was a problem hiding this comment.
This tooltip text only shows when the button is disabled but there is no logic here to disable the button. Why would you want to disable this button anyways? Wouldn't we want a person to be able to undisable a mondule by saving it with it dechecked?
There was a problem hiding this comment.
The button is disabled if the module is set to disabled by someone authorized to do so. If someone authorized un-disables the module then the button will be un-disabled when the page is refreshed, since disabled is a property of a module stored in the database.
|
Kudos, SonarCloud Quality Gate passed! |
# Conflicts: # src/components/ModuleCard/ModuleCard.tsx # src/pages/ModuleEditor/ModuleEditor.tsx # src/types/Module.ts # yarn.lock
|
Kudos, SonarCloud Quality Gate passed! |












No description provided.