pull/4791/head
filip mertens 6 months ago
parent 3809386edb
commit 8b7d51d3b0
  1. 7
      libs/remix-ui/git/src/components/panels/commits.tsx
  2. 20
      libs/remix-ui/git/src/lib/listeners.ts

@ -15,16 +15,13 @@ export const Commits = () => {
const checkout = async (oid: string) => {
try {
//await ModalRef.current?.show();
actions.checkout({ ref: oid })
//Utils.log("yes");
} catch (e) {
//Utils.log("no");
//
}
};
const loadNextPage = () => {
//actions.fetch(null, context.currentBranch.name, null, 5, true, true)
actions.fetch({
remote: null,
ref: context.currentBranch,
@ -32,7 +29,7 @@ export const Commits = () => {
depth: 5,
singleBranch: true
})
//actions.getBranchCommits(branch, lastPageNumber+1)
}
const getRemote = () => {

@ -55,15 +55,15 @@ export const setCallBacks = (viewPlugin: Plugin, gitDispatcher: React.Dispatch<g
});
plugin.on("fileManager", "fileRemoved", async (e) => {
//await synTimerStart();
});
plugin.on("fileManager", "currentFileChanged", async (e) => {
//await synTimerStart();
loadFileQueue.enqueue(async () => {
loadFiles()
})
});
plugin.on("fileManager", "fileRenamed", async (oldfile, newfile) => {
//await synTimerStart();
loadFileQueue.enqueue(async () => {
loadFiles()
})
});
plugin.on("filePanel", "setWorkspace", async (x: any) => {
@ -81,14 +81,6 @@ export const setCallBacks = (viewPlugin: Plugin, gitDispatcher: React.Dispatch<g
})
});
plugin.on("filePanel", "deleteWorkspace" as any, async (x: any) => {
//await synTimerStart();
});
plugin.on("filePanel", "renameWorkspace" as any, async (x: any) => {
//await synTimerStart();
});
plugin.on('dgitApi', 'checkout', async () => {
loadFileQueue.enqueue(async () => {
gitlog()

Loading…
Cancel
Save