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

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

Loading…
Cancel
Save