diff options
Diffstat (limited to 'src/features/workspaces/components/EditWorkspaceForm.tsx')
-rw-r--r-- | src/features/workspaces/components/EditWorkspaceForm.tsx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/features/workspaces/components/EditWorkspaceForm.tsx b/src/features/workspaces/components/EditWorkspaceForm.tsx index 18e7c251e..cc7a2b19b 100644 --- a/src/features/workspaces/components/EditWorkspaceForm.tsx +++ b/src/features/workspaces/components/EditWorkspaceForm.tsx | |||
@@ -92,6 +92,7 @@ class EditWorkspaceForm extends Component<IProps> { | |||
92 | this.form = this.prepareWorkspaceForm(this.props.workspace); | 92 | this.form = this.prepareWorkspaceForm(this.props.workspace); |
93 | } | 93 | } |
94 | 94 | ||
95 | // eslint-disable-next-line @eslint-react/no-unsafe-component-will-receive-props | ||
95 | UNSAFE_componentWillReceiveProps(nextProps): void { | 96 | UNSAFE_componentWillReceiveProps(nextProps): void { |
96 | const { workspace } = this.props; | 97 | const { workspace } = this.props; |
97 | if (workspace.id !== nextProps.workspace.id) { | 98 | if (workspace.id !== nextProps.workspace.id) { |
@@ -178,11 +179,11 @@ class EditWorkspaceForm extends Component<IProps> { | |||
178 | <span className="settings__header-item">{workspace.name}</span> | 179 | <span className="settings__header-item">{workspace.name}</span> |
179 | </div> | 180 | </div> |
180 | <div className="settings__body"> | 181 | <div className="settings__body"> |
181 | {updateWorkspaceRequest.error && ( | 182 | {updateWorkspaceRequest.error ? ( |
182 | <Infobox icon="alert" type="danger"> | 183 | <Infobox icon="alert" type="danger"> |
183 | Error while saving workspace | 184 | Error while saving workspace |
184 | </Infobox> | 185 | </Infobox> |
185 | )} | 186 | ) : null} |
186 | <div className={classes.nameInput}> | 187 | <div className={classes.nameInput}> |
187 | <Input {...form.$('name').bind()} /> | 188 | <Input {...form.$('name').bind()} /> |
188 | <Toggle {...form.$('keepLoaded').bind()} /> | 189 | <Toggle {...form.$('keepLoaded').bind()} /> |
@@ -228,6 +229,7 @@ class EditWorkspaceForm extends Component<IProps> { | |||
228 | buttonType={isDeleting ? 'secondary' : 'danger'} | 229 | buttonType={isDeleting ? 'secondary' : 'danger'} |
229 | className="settings__delete-button" | 230 | className="settings__delete-button" |
230 | disabled={isDeleting} | 231 | disabled={isDeleting} |
232 | // eslint-disable-next-line react/jsx-no-bind | ||
231 | onClick={this.delete.bind(this)} | 233 | onClick={this.delete.bind(this)} |
232 | /> | 234 | /> |
233 | {/* ===== Save Button ===== */} | 235 | {/* ===== Save Button ===== */} |
@@ -237,6 +239,7 @@ class EditWorkspaceForm extends Component<IProps> { | |||
237 | busy={isSaving} | 239 | busy={isSaving} |
238 | className="franz-form__button" | 240 | className="franz-form__button" |
239 | buttonType={isSaving ? 'secondary' : 'primary'} | 241 | buttonType={isSaving ? 'secondary' : 'primary'} |
242 | // eslint-disable-next-line react/jsx-no-bind | ||
240 | onClick={this.save.bind(this, form)} | 243 | onClick={this.save.bind(this, form)} |
241 | // TODO: Need to disable if no services have been added to this workspace | 244 | // TODO: Need to disable if no services have been added to this workspace |
242 | disabled={isSaving} | 245 | disabled={isSaving} |