Skip to content
Snippets Groups Projects
Commit 0b7824d4 authored by Phil Hughes's avatar Phil Hughes
Browse files

Updated some Vue specific JS

parent fde9732a
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -47,7 +47,8 @@
<i
v-if="isLoading"
class="fa fa-spinner fa-spin"
aria-hidden="true">
aria-hidden="true"
aria-label="Loading">
</i>
</button>
</template>
Loading
Loading
@@ -3,15 +3,13 @@
import eventHub from '../eventhub';
import DeployKeysService from '../service';
import DeployKeysStore from '../store';
import keysPanel from './keys.vue';
import keysPanel from './keys_panel.vue';
 
export default {
data() {
const store = new DeployKeysStore();
return {
isLoading: false,
store,
store: new DeployKeysStore(),
};
},
props: {
Loading
Loading
@@ -84,7 +82,9 @@
class="text-center"
v-if="isLoading && !hasKeys">
<i
class="fa fa-spinner fa-spin fa-2x">
class="fa fa-spinner fa-spin fa-2x"
aria-hidden="true"
aria-label="Loading deploy keys">
</i>
</div>
<div v-else-if="hasKeys">
Loading
Loading
Loading
Loading
@@ -56,9 +56,9 @@
</div>
<div class="deploy-key-content prepend-left-default deploy-key-projects">
<a
v-for="project in deployKey.projects"
class="label deploy-project-label"
:href="project.full_path"
v-for="project in deployKey.projects">
:href="project.full_path">
{{ project.full_name }}
</a>
</div>
Loading
Loading
Loading
Loading
@@ -6,8 +6,4 @@ export default class DeployKeysStore {
findEnabledKey(id) {
return this.keys.enabled_keys.find(key => key.id === id);
}
removeKeyForType(deployKey, type) {
this.keys[type] = this.keys[type].filter(key => key.id !== deployKey.id);
}
}
---
title: Project deploy keys json end point
title: Deploy keys load are loaded async
merge_request:
author:
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment