mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-06 00:27:24 +00:00
Let me rearrange git credentials
This commit is contained in:
3 files changed
+203
-73
No files matched your search
@@ -82,6 +82,13 @@ export function GitSettingsProvider({ children }: GitSettingsProviderProps) {
|
||||
});
|
||||
};
|
||||
|
||||
const setCredentials = (credentials: GitCredential[]) => {
|
||||
setSettings(prev => ({
|
||||
...prev,
|
||||
credentials,
|
||||
}));
|
||||
};
|
||||
|
||||
const isConfigured = settings.credentials.length > 0;
|
||||
|
||||
const contextValue: GitSettingsContextType = {
|
||||
@@ -90,6 +97,7 @@ export function GitSettingsProvider({ children }: GitSettingsProviderProps) {
|
||||
addCredential,
|
||||
removeCredential,
|
||||
updateCredential,
|
||||
setCredentials,
|
||||
isConfigured,
|
||||
isInitialized,
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user