aboutsummaryrefslogtreecommitdiffstats
path: root/web_src/js/features/repo-diff-commitselect.js
blob: ebac64e855c2688ed63a55a6c240a7c196f672c5 (plain)
1
2
3
4
5
6
7
8
9
10
import {createApp} from 'vue';
import DiffCommitSelector from '../components/DiffCommitSelector.vue';

export function initDiffCommitSelect() {
  const el = document.getElementById('diff-commit-select');
  if (!el) return;

  const commitSelect = createApp(DiffCommitSelector);
  commitSelect.mount(el);
}