mirror of
https://github.com/usebruno/bruno.git
synced 2026-06-11 09:51:30 +00:00
fix: use Title Case for default "Untitled Collection" and "Untitled Workspace" (#7389)
This commit is contained in:
@@ -41,7 +41,7 @@ const InlineCollectionCreator = ({ onComplete, onCancel, onOpenAdvanced }) => {
|
||||
};
|
||||
|
||||
if (defaultLocation) {
|
||||
window.ipcRenderer?.invoke('renderer:find-unique-folder-name', 'untitled collection', defaultLocation)
|
||||
window.ipcRenderer?.invoke('renderer:find-unique-folder-name', 'Untitled Collection', defaultLocation)
|
||||
?.then((name) => focusAndSelect(name))
|
||||
?.catch(() => focusAndSelect());
|
||||
} else {
|
||||
@@ -126,7 +126,7 @@ const InlineCollectionCreator = ({ onComplete, onCancel, onOpenAdvanced }) => {
|
||||
ref={inputRef}
|
||||
type="text"
|
||||
className="inline-collection-input"
|
||||
defaultValue="untitled collection"
|
||||
defaultValue="Untitled Collection"
|
||||
onKeyDown={handleKeyDown}
|
||||
autoComplete="off"
|
||||
autoCorrect="off"
|
||||
|
||||
@@ -57,7 +57,7 @@ const transformCollection = async (collection, type) => {
|
||||
*/
|
||||
export const createWorkspaceWithUniqueName = (location) => {
|
||||
return async (dispatch) => {
|
||||
const name = await ipcRenderer?.invoke('renderer:find-unique-folder-name', 'untitled workspace', location) || 'untitled workspace';
|
||||
const name = await ipcRenderer?.invoke('renderer:find-unique-folder-name', 'Untitled Workspace', location) || 'Untitled Workspace';
|
||||
const folderName = sanitizeName(name);
|
||||
const result = await dispatch(createWorkspaceAction(name, folderName, location));
|
||||
if (result?.workspaceUid) {
|
||||
|
||||
Reference in New Issue
Block a user