Welcome to mirror list, hosted at ThFree Co, Russian Federation.

index.js « show « tags « projects « pages « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 651cc05ca4f9d2fc165f7adc6ea61921664ba01e (plain)
1
2
3
4
5
6
7
8
9
10
import { redirectTo, getBaseURL, stripFinalUrlSegment } from '~/lib/utils/url_utility';
import { initRemoveTag } from '../remove_tag';

document.addEventListener('DOMContentLoaded', () => {
  initRemoveTag({
    onDelete: (path = '') => {
      redirectTo(stripFinalUrlSegment([getBaseURL(), path].join('')));
    },
  });
});