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

index.js « deploy_keys « admin « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d86de4229de2f1d32e57574844dfa7ee05fa2212 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import Vue from 'vue';
import DeployKeysTable from './components/table.vue';

export const initAdminDeployKeysTable = () => {
  const el = document.getElementById('js-admin-deploy-keys-table');

  if (!el) return false;

  const { editPath, deletePath, createPath, emptyStateSvgPath } = el.dataset;

  return new Vue({
    el,
    provide: {
      editPath,
      deletePath,
      createPath,
      emptyStateSvgPath,
    },
    render(createElement) {
      return createElement(DeployKeysTable);
    },
  });
};