-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
30 changed files
with
845 additions
and
93 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
backend/src/Designer/Exceptions/AppDevelopment/ConflictingFileNameException.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
using System; | ||
|
||
namespace Altinn.Studio.Designer.Exceptions.AppDevelopment; | ||
|
||
/// <summary> | ||
/// Indicates that an error occurred during C# code generation. | ||
/// </summary> | ||
[Serializable] | ||
public class ConflictingFileNameException : Exception | ||
{ | ||
/// <inheritdoc/> | ||
public ConflictingFileNameException() | ||
{ | ||
} | ||
|
||
/// <inheritdoc/> | ||
public ConflictingFileNameException(string message) : base(message) | ||
{ | ||
} | ||
|
||
/// <inheritdoc/> | ||
public ConflictingFileNameException(string message, Exception innerException) : base(message, innerException) | ||
{ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 6 additions & 2 deletions
8
frontend/packages/shared/src/hooks/mutations/useAddImageMutation.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,16 @@ | ||
import { useMutation } from '@tanstack/react-query'; | ||
import { useServicesContext } from 'app-shared/contexts/ServicesContext'; | ||
|
||
export const useAddImageMutation = (org: string, app: string) => { | ||
export const useAddImageMutation = ( | ||
org: string, | ||
app: string, | ||
hideDefaultError: boolean = false, | ||
) => { | ||
const { addImage } = useServicesContext(); | ||
return useMutation({ | ||
mutationFn: (form: FormData) => addImage(org, app, form), | ||
meta: { | ||
hideDefaultError: true, | ||
hideDefaultError: hideDefaultError, | ||
}, | ||
}); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ig/editModal/EditImage/ConflictingImageSourceAlert/ConflictingImageSourceAlert.module.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
.alert { | ||
margin: var(--fds-spacing-5); | ||
margin-top: var(--fds-spacing-2); | ||
} |
Oops, something went wrong.