From 7d11e11702603c57c4b9f704b47dd708738fe882 Mon Sep 17 00:00:00 2001 From: filip mertens Date: Tue, 8 Nov 2022 13:55:08 +0100 Subject: [PATCH] name update --- libs/remix-ui/workspace/src/lib/actions/payload.ts | 4 ++-- libs/remix-ui/workspace/src/lib/actions/workspace.ts | 4 ++-- libs/remix-ui/workspace/src/lib/reducers/workspace.ts | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/libs/remix-ui/workspace/src/lib/actions/payload.ts b/libs/remix-ui/workspace/src/lib/actions/payload.ts index d53c66b21a..586e785aa7 100644 --- a/libs/remix-ui/workspace/src/lib/actions/payload.ts +++ b/libs/remix-ui/workspace/src/lib/actions/payload.ts @@ -279,9 +279,9 @@ export const setCurrentWorkspaceCurrentBranch = (currentBranch?: string) => { } } -export const setCurrentWorkspaceIsRepo = (isRepo: boolean) => { +export const setCurrentWorkspaceIsGitRepo = (isRepo: boolean) => { return { - type: 'SET_CURRENT_WORKSPACE_IS_REPO', + type: 'SET_CURRENT_WORKSPACE_IS_GITREPO', payload: isRepo } } diff --git a/libs/remix-ui/workspace/src/lib/actions/workspace.ts b/libs/remix-ui/workspace/src/lib/actions/workspace.ts index d56bda9981..b55352f65e 100644 --- a/libs/remix-ui/workspace/src/lib/actions/workspace.ts +++ b/libs/remix-ui/workspace/src/lib/actions/workspace.ts @@ -1,7 +1,7 @@ import React from 'react' import { bufferToHex, keccakFromString } from 'ethereumjs-util' import axios, { AxiosResponse } from 'axios' -import { addInputFieldSuccess, cloneRepositoryFailed, cloneRepositoryRequest, cloneRepositorySuccess, createWorkspaceError, createWorkspaceRequest, createWorkspaceSuccess, displayNotification, displayPopUp, fetchWorkspaceDirectoryError, fetchWorkspaceDirectoryRequest, fetchWorkspaceDirectorySuccess, hideNotification, setCurrentWorkspace, setCurrentWorkspaceBranches, setCurrentWorkspaceCurrentBranch, setDeleteWorkspace, setMode, setReadOnlyMode, setRenameWorkspace, setCurrentWorkspaceIsRepo } from './payload' +import { addInputFieldSuccess, cloneRepositoryFailed, cloneRepositoryRequest, cloneRepositorySuccess, createWorkspaceError, createWorkspaceRequest, createWorkspaceSuccess, displayNotification, displayPopUp, fetchWorkspaceDirectoryError, fetchWorkspaceDirectoryRequest, fetchWorkspaceDirectorySuccess, hideNotification, setCurrentWorkspace, setCurrentWorkspaceBranches, setCurrentWorkspaceCurrentBranch, setDeleteWorkspace, setMode, setReadOnlyMode, setRenameWorkspace, setCurrentWorkspaceIsGitRepo } from './payload' import { addSlash, checkSlash, checkSpecialChars } from '@remix-ui/helper' import { JSONStandardInput, WorkspaceTemplate } from '../types' @@ -472,7 +472,7 @@ export const cloneRepository = async (url: string) => { export const checkGit = async () => { const isGitRepo = await plugin.fileManager.isGitRepo() - dispatch(setCurrentWorkspaceIsRepo(isGitRepo)) + dispatch(setCurrentWorkspaceIsGitRepo(isGitRepo)) await refreshBranches() const currentBranch = await plugin.call('dGitProvider', 'currentbranch') dispatch(setCurrentWorkspaceCurrentBranch(currentBranch)) diff --git a/libs/remix-ui/workspace/src/lib/reducers/workspace.ts b/libs/remix-ui/workspace/src/lib/reducers/workspace.ts index 81da051e2b..e3c800f9b1 100644 --- a/libs/remix-ui/workspace/src/lib/reducers/workspace.ts +++ b/libs/remix-ui/workspace/src/lib/reducers/workspace.ts @@ -703,7 +703,7 @@ export const browserReducer = (state = browserInitialState, action: Action) => { } } - case 'SET_CURRENT_WORKSPACE_IS_REPO': { + case 'SET_CURRENT_WORKSPACE_IS_GITREPO': { const payload: boolean = action.payload return {