debian-mirror-gitlab/app/assets/javascripts/deploy_keys/components/keys_panel.vue

69 lines
1.4 KiB
Vue
Raw Normal View History

2017-08-17 22:00:37 +05:30
<script>
2018-10-15 14:42:47 +05:30
import deployKey from './key.vue';
2017-08-17 22:00:37 +05:30
2018-10-15 14:42:47 +05:30
export default {
components: {
deployKey,
},
props: {
keys: {
type: Array,
required: true,
2018-03-17 18:26:18 +05:30
},
2018-10-15 14:42:47 +05:30
store: {
type: Object,
required: true,
2017-08-17 22:00:37 +05:30
},
2018-10-15 14:42:47 +05:30
endpoint: {
type: String,
required: true,
},
projectId: {
type: String,
required: false,
default: null,
},
},
};
2017-08-17 22:00:37 +05:30
</script>
<template>
2018-10-15 14:42:47 +05:30
<div class="deploy-keys-panel table-holder">
<template v-if="keys.length > 0">
2019-01-03 12:48:30 +05:30
<div
role="row"
class="gl-responsive-table-row table-row-header">
<div
role="rowheader"
class="table-section section-40">
2018-10-15 14:42:47 +05:30
{{ s__('DeployKeys|Deploy key') }}
</div>
2019-01-03 12:48:30 +05:30
<div
role="rowheader"
class="table-section section-30">
2018-10-15 14:42:47 +05:30
{{ s__('DeployKeys|Project usage') }}
</div>
2019-01-03 12:48:30 +05:30
<div
role="rowheader"
class="table-section section-15 text-right">
{{ __('Created') }}
</div>
2018-10-15 14:42:47 +05:30
</div>
<deploy-key
2017-08-17 22:00:37 +05:30
v-for="deployKey in keys"
2018-03-17 18:26:18 +05:30
:key="deployKey.id"
2018-10-15 14:42:47 +05:30
:deploy-key="deployKey"
:store="store"
:endpoint="endpoint"
:project-id="projectId"
/>
</template>
2019-01-03 12:48:30 +05:30
<div
v-else
class="settings-message text-center"
>
2018-10-15 14:42:47 +05:30
{{ s__('DeployKeys|No deploy keys found. Create one with the form above.') }}
2017-08-17 22:00:37 +05:30
</div>
</div>
</template>