Skip to content

Commit 4b9f09c

Browse files
committed
sed -i 's/data-priority-url/data-update-priority-url/g'
1 parent f0658d3 commit 4b9f09c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

templates/repo/settings/branches.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
</h4>
3838

3939
<div class="ui attached segment">
40-
<div class="flex-list" id="protected-branches-list" data-priority-url="{{$.Repository.Link}}/settings/branches/priority">
40+
<div class="flex-list" id="protected-branches-list" data-update-priority-url="{{$.Repository.Link}}/settings/branches/priority">
4141
{{range .ProtectedBranches}}
4242
<div class="item" data-id="{{.ID}}">
4343
<div class="flex-item tw-items-center">

web_src/js/features/repo-settings-branches.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ vi.mock('../modules/sortable.ts', () => ({
1414
describe('Repository Branch Settings', () => {
1515
beforeEach(() => {
1616
document.body.innerHTML = `
17-
<div id="protected-branches-list" data-priority-url="some/repo/branches/priority">
17+
<div id="protected-branches-list" data-update-priority-url="some/repo/branches/priority">
1818
<div class="item" data-id="1">
1919
<div class="flex-item">
2020
<div class="drag-handle"></div>

web_src/js/features/repo-settings-branches.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export function initRepoBranchesSettings() {
1515
}).filter((id) => !Number.isNaN(id));
1616

1717
try {
18-
await POST(protectedBranchesList.getAttribute('data-priority-url'), {
18+
await POST(protectedBranchesList.getAttribute('data-update-priority-url'), {
1919
data: {
2020
ids: newOrder,
2121
},

0 commit comments

Comments
 (0)