mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-16 02:06:18 +01:00
Fixed issues preventing paged changeset list to be accessed via URL
This commit is contained in:
@@ -6,6 +6,7 @@ import {
|
||||
} from "../../modules/types";
|
||||
import { apiClient } from "@scm-manager/ui-components";
|
||||
import type { Repository } from "@scm-manager/ui-types";
|
||||
import { isPending } from "../../modules/pending";
|
||||
|
||||
export const FETCH_BRANCHES = "scm/repos/FETCH_BRANCHES";
|
||||
export const FETCH_BRANCHES_PENDING = `${FETCH_BRANCHES}_${PENDING_SUFFIX}`;
|
||||
@@ -123,6 +124,10 @@ export function getBranch(state: Object, repository: Repository, name: string) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
export function isFetchBranchesPending(state: Object, repository: Repository) {
|
||||
return isPending(state, FETCH_BRANCHES, createKey(repository));
|
||||
}
|
||||
|
||||
function createKey(repository: Repository) {
|
||||
const { namespace, name } = repository;
|
||||
return `${namespace}/${name}`;
|
||||
|
||||
Reference in New Issue
Block a user