name update

pull/3097/head
filip mertens 2 years ago committed by Aniket
parent b953418881
commit 7d11e11702
  1. 4
      libs/remix-ui/workspace/src/lib/actions/payload.ts
  2. 4
      libs/remix-ui/workspace/src/lib/actions/workspace.ts
  3. 2
      libs/remix-ui/workspace/src/lib/reducers/workspace.ts

@ -279,9 +279,9 @@ export const setCurrentWorkspaceCurrentBranch = (currentBranch?: string) => {
} }
} }
export const setCurrentWorkspaceIsRepo = (isRepo: boolean) => { export const setCurrentWorkspaceIsGitRepo = (isRepo: boolean) => {
return { return {
type: 'SET_CURRENT_WORKSPACE_IS_REPO', type: 'SET_CURRENT_WORKSPACE_IS_GITREPO',
payload: isRepo payload: isRepo
} }
} }

@ -1,7 +1,7 @@
import React from 'react' import React from 'react'
import { bufferToHex, keccakFromString } from 'ethereumjs-util' import { bufferToHex, keccakFromString } from 'ethereumjs-util'
import axios, { AxiosResponse } from 'axios' 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 { addSlash, checkSlash, checkSpecialChars } from '@remix-ui/helper'
import { JSONStandardInput, WorkspaceTemplate } from '../types' import { JSONStandardInput, WorkspaceTemplate } from '../types'
@ -472,7 +472,7 @@ export const cloneRepository = async (url: string) => {
export const checkGit = async () => { export const checkGit = async () => {
const isGitRepo = await plugin.fileManager.isGitRepo() const isGitRepo = await plugin.fileManager.isGitRepo()
dispatch(setCurrentWorkspaceIsRepo(isGitRepo)) dispatch(setCurrentWorkspaceIsGitRepo(isGitRepo))
await refreshBranches() await refreshBranches()
const currentBranch = await plugin.call('dGitProvider', 'currentbranch') const currentBranch = await plugin.call('dGitProvider', 'currentbranch')
dispatch(setCurrentWorkspaceCurrentBranch(currentBranch)) dispatch(setCurrentWorkspaceCurrentBranch(currentBranch))

@ -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 const payload: boolean = action.payload
return { return {

Loading…
Cancel
Save