diff options
author | Phil Hughes <me@iamphill.com> | 2018-06-04 16:45:35 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2018-06-06 13:19:28 +0300 |
commit | c9b36995c7086e01a62c2b0ec7597579532bda7d (patch) | |
tree | 92c463c01bcdb8d89071f4b2eef5d282bcd83fdd /app/assets/javascripts/ide/components/merge_requests/list.vue | |
parent | ce2bc5c0a8021e876308b4990bc17f95aad90387 (diff) |
fixed loading icon hiding content
Diffstat (limited to 'app/assets/javascripts/ide/components/merge_requests/list.vue')
-rw-r--r-- | app/assets/javascripts/ide/components/merge_requests/list.vue | 93 |
1 files changed, 47 insertions, 46 deletions
diff --git a/app/assets/javascripts/ide/components/merge_requests/list.vue b/app/assets/javascripts/ide/components/merge_requests/list.vue index b661545a714..233370692d6 100644 --- a/app/assets/javascripts/ide/components/merge_requests/list.vue +++ b/app/assets/javascripts/ide/components/merge_requests/list.vue @@ -80,55 +80,56 @@ export default { <template> <div> - <loading-icon - class="mt-3 mb-3" - v-if="isLoading" - size="2" - /> - <template v-else> - <div class="dropdown-input mt-3 pb-3 mb-3 border-bottom"> - <input - type="search" - class="dropdown-input-field" - placeholder="Search merge requests" - v-model="search" - @input="searchMergeRequests" - ref="searchInput" - /> - <i - aria-hidden="true" - class="fa fa-search dropdown-input-search" - ></i> - </div> - <div class="dropdown-content ide-merge-requests-dropdown-content"> - <ul class="mb-3"> - <template v-if="hasMergeRequests"> - <li - v-for="item in mergeRequests" - :key="item.id" - > - <item - :item="item" - :current-id="currentMergeRequestId" - :current-project-id="currentProjectId" - @click="viewMergeRequest" - /> - </li> - </template> + <div class="dropdown-input mt-3 pb-3 mb-0 border-bottom"> + <input + type="search" + class="dropdown-input-field" + placeholder="Search merge requests" + v-model="search" + @input="searchMergeRequests" + ref="searchInput" + /> + <i + aria-hidden="true" + class="fa fa-search dropdown-input-search" + ></i> + </div> + <div class="dropdown-content ide-merge-requests-dropdown-content d-flex"> + <loading-icon + class="mt-3 mb-3 align-self-center ml-auto mr-auto" + v-if="isLoading" + size="2" + /> + <ul + v-else + class="mb-3 w-100" + > + <template v-if="hasMergeRequests"> <li - v-else - class="ide-merge-requests-empty d-flex align-items-center justify-content-center" + v-for="item in mergeRequests" + :key="item.id" > - <template v-if="hasNoSearchResults"> - {{ __('No merge requests found') }} - </template> - <template v-else> - {{ emptyText }} - </template> + <item + :item="item" + :current-id="currentMergeRequestId" + :current-project-id="currentProjectId" + @click="viewMergeRequest" + /> </li> - </ul> - </div> - </template> + </template> + <li + v-else + class="ide-merge-requests-empty d-flex align-items-center justify-content-center" + > + <template v-if="hasNoSearchResults"> + {{ __('No merge requests found') }} + </template> + <template v-else> + {{ emptyText }} + </template> + </li> + </ul> + </div> </div> </template> |