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">
<div
role="row"
class="gl-responsive-table-row table-row-header">
<div
role="rowheader"
class="table-section section-40">
{{ s__('DeployKeys|Deploy key') }}
</div>
<div
role="rowheader"
class="table-section section-30">
{{ s__('DeployKeys|Project usage') }}
</div>
<div
role="rowheader"
class="table-section section-15 text-right">
{{ __('Created') }}
</div>
</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>
2017-08-17 22:00:37 +05:30
<div
class="settings-message text-center"
2018-10-15 14:42:47 +05:30
v-else
2017-09-10 17:25:29 +05:30
>
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>