Skip to content

Commit

Permalink
fix(team): clear input on successful creation
Browse files Browse the repository at this point in the history
  • Loading branch information
GZTimeWalker committed Dec 18, 2024
1 parent ad66cad commit 7f6a177
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
6 changes: 3 additions & 3 deletions src/Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<PackageVersion Include="OpenTelemetry.Instrumentation.Process" Version="0.5.0-beta.7" />
<PackageVersion Include="OpenTelemetry.Instrumentation.Runtime" Version="1.10.0" />
<PackageVersion Include="OpenTelemetry.Instrumentation.StackExchangeRedis" Version="1.9.0-beta.1" />
<PackageVersion Include="Scalar.AspNetCore" Version="1.2.61" />
<PackageVersion Include="Scalar.AspNetCore" Version="1.2.63" />
<PackageVersion Include="Serilog.AspNetCore" Version="9.0.0" />
<PackageVersion Include="Serilog.Expressions" Version="5.0.0" />
<PackageVersion Include="Serilog.Extensions.Logging" Version="9.0.0" />
Expand All @@ -55,10 +55,10 @@
<PackageVersion Include="Microsoft.AspNetCore.TestHost" Version="9.0.0" />
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
<PackageVersion Include="xunit" Version="2.9.2" />
<PackageVersion Include="xunit.runner.visualstudio" Version="3.0.0"/>
<PackageVersion Include="xunit.runner.visualstudio" Version="3.0.0" />
<PackageVersion Include="xunit.runner.console" Version="2.9.2" />
<PackageVersion Include="coverlet.collector" Version="6.0.2" />
<PackageVersion Include="coverlet.msbuild" Version="6.0.2" />
<PackageVersion Include="ZstdSharp.Port" Version="0.8.4" />
</ItemGroup>
</Project>
</Project>
8 changes: 4 additions & 4 deletions src/GZCTF/ClientApp/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/GZCTF/ClientApp/src/components/TeamCreateModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,13 @@ export const TeamCreateModal: FC<TeamEditModalProps> = (props) => {
message: t('team.notification.create.success.message', { team: res.data.name }),
icon: <Icon path={mdiCheck} size={1} />,
})
setCreateTeam({ name: '', bio: '' })
mutate()
modalProps.onClose()
} catch (e) {
showErrorNotification(e, t)
} finally {
setDisabled(false)
modalProps.onClose()
}
}

Expand Down

0 comments on commit 7f6a177

Please sign in to comment.