2017-08-17 22:00:37 +05:30
|
|
|
<script>
|
|
|
|
import key from './key.vue';
|
|
|
|
|
|
|
|
export default {
|
2018-03-17 18:26:18 +05:30
|
|
|
components: {
|
|
|
|
key,
|
|
|
|
},
|
2017-08-17 22:00:37 +05:30
|
|
|
props: {
|
|
|
|
title: {
|
|
|
|
type: String,
|
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
keys: {
|
|
|
|
type: Array,
|
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
showHelpBox: {
|
|
|
|
type: Boolean,
|
|
|
|
required: false,
|
|
|
|
default: true,
|
|
|
|
},
|
|
|
|
store: {
|
|
|
|
type: Object,
|
|
|
|
required: true,
|
|
|
|
},
|
2017-09-10 17:25:29 +05:30
|
|
|
endpoint: {
|
|
|
|
type: String,
|
|
|
|
required: true,
|
|
|
|
},
|
2017-08-17 22:00:37 +05:30
|
|
|
},
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
|
|
|
<div class="deploy-keys-panel">
|
|
|
|
<h5>
|
|
|
|
{{ title }}
|
|
|
|
({{ keys.length }})
|
|
|
|
</h5>
|
2018-03-17 18:26:18 +05:30
|
|
|
<ul
|
|
|
|
class="well-list"
|
2017-09-10 17:25:29 +05:30
|
|
|
v-if="keys.length"
|
|
|
|
>
|
2017-08-17 22:00:37 +05:30
|
|
|
<li
|
|
|
|
v-for="deployKey in keys"
|
2018-03-17 18:26:18 +05:30
|
|
|
:key="deployKey.id"
|
|
|
|
>
|
2017-08-17 22:00:37 +05:30
|
|
|
<key
|
|
|
|
:deploy-key="deployKey"
|
2017-09-10 17:25:29 +05:30
|
|
|
:store="store"
|
|
|
|
:endpoint="endpoint"
|
|
|
|
/>
|
2017-08-17 22:00:37 +05:30
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
<div
|
|
|
|
class="settings-message text-center"
|
2017-09-10 17:25:29 +05:30
|
|
|
v-else-if="showHelpBox"
|
|
|
|
>
|
2017-08-17 22:00:37 +05:30
|
|
|
No deploy keys found. Create one with the form above.
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|