Commit c4449495 authored by GitLab Bot's avatar GitLab Bot

Automatic merge of gitlab-org/gitlab master

parents df9f198f 492b02ee
...@@ -84,7 +84,7 @@ export default { ...@@ -84,7 +84,7 @@ export default {
/> />
</a> </a>
<gl-loading-icon v-show="isLoading" :inline="true" /> <gl-loading-icon v-show="isLoading" size="sm" :inline="true" />
<div v-show="hasError" class="btn-group"> <div v-show="hasError" class="btn-group">
<div class="btn btn-default btn-sm disabled"> <div class="btn btn-default btn-sm disabled">
......
...@@ -221,7 +221,7 @@ export default { ...@@ -221,7 +221,7 @@ export default {
:link-url="renderedLinkUrl" :link-url="renderedLinkUrl"
/> />
<p v-show="isRendering"> <p v-show="isRendering">
<gl-loading-icon :inline="true" /> <gl-loading-icon size="sm" :inline="true" />
</p> </p>
<p v-show="!renderedBadge && !isRendering" class="disabled-content"> <p v-show="!renderedBadge && !isRendering" class="disabled-content">
{{ s__('Badges|No image to preview') }} {{ s__('Badges|No image to preview') }}
......
...@@ -73,7 +73,7 @@ export default { ...@@ -73,7 +73,7 @@ export default {
data-testid="delete-badge" data-testid="delete-badge"
@click="updateBadgeInModal(badge)" @click="updateBadgeInModal(badge)"
/> />
<gl-loading-icon v-show="badge.isDeleting" :inline="true" /> <gl-loading-icon v-show="badge.isDeleting" size="sm" :inline="true" />
</div> </div>
</div> </div>
</div> </div>
......
...@@ -163,7 +163,7 @@ export default { ...@@ -163,7 +163,7 @@ export default {
><span data-testid="popover-title">{{ blockedLabel }}</span></template ><span data-testid="popover-title">{{ blockedLabel }}</span></template
> >
<template v-if="loading"> <template v-if="loading">
<gl-loading-icon /> <gl-loading-icon size="sm" />
<p class="gl-mt-4 gl-mb-0 gl-font-small">{{ loadingMessage }}</p> <p class="gl-mt-4 gl-mb-0 gl-font-small">{{ loadingMessage }}</p>
</template> </template>
<template v-else> <template v-else>
......
...@@ -242,7 +242,7 @@ export default { ...@@ -242,7 +242,7 @@ export default {
:aria-label="$options.i18n.loading" :aria-label="$options.i18n.loading"
data-testid="board_list_loading" data-testid="board_list_loading"
> >
<gl-loading-icon /> <gl-loading-icon size="sm" />
</div> </div>
<board-new-issue v-if="issueCreateFormVisible" :list="list" /> <board-new-issue v-if="issueCreateFormVisible" :list="list" />
<board-new-epic v-if="epicCreateFormVisible" :list="list" /> <board-new-epic v-if="epicCreateFormVisible" :list="list" />
...@@ -273,6 +273,7 @@ export default { ...@@ -273,6 +273,7 @@ export default {
<li v-if="showCount" class="board-list-count gl-text-center" data-issue-id="-1"> <li v-if="showCount" class="board-list-count gl-text-center" data-issue-id="-1">
<gl-loading-icon <gl-loading-icon
v-if="loadingMore" v-if="loadingMore"
size="sm"
:label="$options.i18n.loadingMoreboardItems" :label="$options.i18n.loadingMoreboardItems"
data-testid="count-loading-icon" data-testid="count-loading-icon"
/> />
......
...@@ -429,7 +429,7 @@ export default { ...@@ -429,7 +429,7 @@ export default {
data-qa-selector="board_list_cards_area" data-qa-selector="board_list_cards_area"
> >
<div v-if="loading" class="board-list-loading text-center" :aria-label="__('Loading issues')"> <div v-if="loading" class="board-list-loading text-center" :aria-label="__('Loading issues')">
<gl-loading-icon /> <gl-loading-icon size="sm" />
</div> </div>
<board-new-issue v-if="list.type !== 'closed' && showIssueForm" :list="list" /> <board-new-issue v-if="list.type !== 'closed' && showIssueForm" :list="list" />
<ul <ul
...@@ -450,7 +450,7 @@ export default { ...@@ -450,7 +450,7 @@ export default {
:disabled="disabled" :disabled="disabled"
/> />
<li v-if="showCount" class="board-list-count text-center" data-issue-id="-1"> <li v-if="showCount" class="board-list-count text-center" data-issue-id="-1">
<gl-loading-icon v-show="list.loadingMore" label="Loading more issues" /> <gl-loading-icon v-show="list.loadingMore" size="sm" label="Loading more issues" />
<span v-if="list.issues.length === list.issuesSize">{{ __('Showing all issues') }}</span> <span v-if="list.issues.length === list.issuesSize">{{ __('Showing all issues') }}</span>
<span v-else>{{ paginatedIssueText }}</span> <span v-else>{{ paginatedIssueText }}</span>
</li> </li>
......
...@@ -327,7 +327,7 @@ export default { ...@@ -327,7 +327,7 @@ export default {
:class="scrollFadeClass" :class="scrollFadeClass"
></div> ></div>
<gl-loading-icon v-if="loading" /> <gl-loading-icon v-if="loading" size="sm" />
<div v-if="canAdminBoard"> <div v-if="canAdminBoard">
<gl-dropdown-divider /> <gl-dropdown-divider />
......
...@@ -316,7 +316,7 @@ export default { ...@@ -316,7 +316,7 @@ export default {
:class="scrollFadeClass" :class="scrollFadeClass"
></div> ></div>
<gl-loading-icon v-if="loading" /> <gl-loading-icon v-if="loading" size="sm" />
<div v-if="canAdminBoard"> <div v-if="canAdminBoard">
<gl-dropdown-divider /> <gl-dropdown-divider />
......
...@@ -126,7 +126,7 @@ export default { ...@@ -126,7 +126,7 @@ export default {
v-show="groupProjectsFlags.isLoading" v-show="groupProjectsFlags.isLoading"
data-testid="dropdown-text-loading-icon" data-testid="dropdown-text-loading-icon"
> >
<gl-loading-icon class="gl-mx-auto" /> <gl-loading-icon class="gl-mx-auto" size="sm" />
</gl-dropdown-text> </gl-dropdown-text>
<gl-dropdown-text <gl-dropdown-text
v-if="isFetchResultEmpty && !groupProjectsFlags.isLoading" v-if="isFetchResultEmpty && !groupProjectsFlags.isLoading"
......
...@@ -136,7 +136,7 @@ export default { ...@@ -136,7 +136,7 @@ export default {
{{ project.namespacedName }} {{ project.namespacedName }}
</gl-dropdown-item> </gl-dropdown-item>
<gl-dropdown-text v-show="isFetching" data-testid="dropdown-text-loading-icon"> <gl-dropdown-text v-show="isFetching" data-testid="dropdown-text-loading-icon">
<gl-loading-icon class="gl-mx-auto" /> <gl-loading-icon class="gl-mx-auto" size="sm" />
</gl-dropdown-text> </gl-dropdown-text>
<gl-dropdown-text v-if="isFetchResultEmpty && !isFetching" data-testid="empty-result-message"> <gl-dropdown-text v-if="isFetchResultEmpty && !isFetching" data-testid="empty-result-message">
<span class="gl-text-gray-500">{{ $options.i18n.emptySearchResult }}</span> <span class="gl-text-gray-500">{{ $options.i18n.emptySearchResult }}</span>
......
...@@ -93,7 +93,7 @@ export default { ...@@ -93,7 +93,7 @@ export default {
<slot name="title"> <slot name="title">
<span data-testid="title">{{ title }}</span> <span data-testid="title">{{ title }}</span>
</slot> </slot>
<gl-loading-icon v-if="loading" inline class="gl-ml-2" /> <gl-loading-icon v-if="loading" size="sm" inline class="gl-ml-2" />
</span> </span>
<gl-button <gl-button
v-if="canUpdate" v-if="canUpdate"
......
...@@ -95,7 +95,7 @@ export default { ...@@ -95,7 +95,7 @@ export default {
</li> </li>
</ul> </ul>
</div> </div>
<div class="dropdown-loading"><gl-loading-icon /></div> <div class="dropdown-loading"><gl-loading-icon size="sm" /></div>
</div> </div>
</div> </div>
<span <span
......
...@@ -160,7 +160,7 @@ export default { ...@@ -160,7 +160,7 @@ export default {
</li> </li>
</ul> </ul>
</div> </div>
<div class="dropdown-loading"><gl-loading-icon /></div> <div class="dropdown-loading"><gl-loading-icon size="sm" /></div>
</div> </div>
</div> </div>
<span <span
......
...@@ -84,7 +84,7 @@ export default { ...@@ -84,7 +84,7 @@ export default {
</li> </li>
</ul> </ul>
</div> </div>
<div class="dropdown-loading"><gl-loading-icon /></div> <div class="dropdown-loading"><gl-loading-icon size="sm" /></div>
</div> </div>
</div> </div>
<span <span
......
...@@ -218,7 +218,7 @@ export default { ...@@ -218,7 +218,7 @@ export default {
@input="debouncedValidateQuery" @input="debouncedValidateQuery"
/> />
<span v-if="queryValidateInFlight" class="form-text text-muted"> <span v-if="queryValidateInFlight" class="form-text text-muted">
<gl-loading-icon :inline="true" class="mr-1 align-middle" /> <gl-loading-icon size="sm" :inline="true" class="mr-1 align-middle" />
{{ s__('Metrics|Validating query') }} {{ s__('Metrics|Validating query') }}
</span> </span>
<slot v-if="!queryValidateInFlight" name="valid-feedback"> <slot v-if="!queryValidateInFlight" name="valid-feedback">
......
...@@ -221,7 +221,7 @@ export default { ...@@ -221,7 +221,7 @@ export default {
@click.stop="toggleResolvedStatus" @click.stop="toggleResolvedStatus"
> >
<gl-icon v-if="!isResolving" :name="resolveIconName" data-testid="resolve-icon" /> <gl-icon v-if="!isResolving" :name="resolveIconName" data-testid="resolve-icon" />
<gl-loading-icon v-else inline /> <gl-loading-icon v-else size="sm" inline />
</button> </button>
</template> </template>
<template v-if="discussion.resolved" #resolved-status> <template v-if="discussion.resolved" #resolved-status>
......
...@@ -365,6 +365,7 @@ export default { ...@@ -365,6 +365,7 @@ export default {
> >
<gl-loading-icon <gl-loading-icon
v-if="showLoadingIcon" v-if="showLoadingIcon"
size="sm"
class="diff-content loading gl-my-0 gl-pt-3" class="diff-content loading gl-my-0 gl-pt-3"
data-testid="loader-icon" data-testid="loader-icon"
/> />
......
...@@ -467,7 +467,7 @@ export default { ...@@ -467,7 +467,7 @@ export default {
:disabled="diffFile.isLoadingFullFile" :disabled="diffFile.isLoadingFullFile"
@click="toggleFullDiff(diffFile.file_path)" @click="toggleFullDiff(diffFile.file_path)"
> >
<gl-loading-icon v-if="diffFile.isLoadingFullFile" inline /> <gl-loading-icon v-if="diffFile.isLoadingFullFile" size="sm" inline />
{{ expandDiffToFullFileTitle }} {{ expandDiffToFullFileTitle }}
</gl-dropdown-item> </gl-dropdown-item>
</template> </template>
......
...@@ -111,7 +111,7 @@ export default { ...@@ -111,7 +111,7 @@ export default {
</script> </script>
<template> <template>
<div class="js-deploy-board deploy-board"> <div class="js-deploy-board deploy-board">
<gl-loading-icon v-if="isLoading" class="loading-icon" /> <gl-loading-icon v-if="isLoading" size="sm" class="loading-icon" />
<template v-else> <template v-else>
<div v-if="canRenderDeployBoard" class="deploy-board-information gl-p-5"> <div v-if="canRenderDeployBoard" class="deploy-board-information gl-p-5">
<div class="deploy-board-information gl-w-full"> <div class="deploy-board-information gl-w-full">
......
...@@ -80,7 +80,7 @@ export default { ...@@ -80,7 +80,7 @@ export default {
<template #button-content> <template #button-content>
<gl-icon name="play" /> <gl-icon name="play" />
<gl-icon name="chevron-down" /> <gl-icon name="chevron-down" />
<gl-loading-icon v-if="isLoading" /> <gl-loading-icon v-if="isLoading" size="sm" />
</template> </template>
<gl-dropdown-item <gl-dropdown-item
v-for="(action, i) in actions" v-for="(action, i) in actions"
......
...@@ -196,6 +196,7 @@ export default { ...@@ -196,6 +196,7 @@ export default {
/> />
<gl-loading-icon <gl-loading-icon
v-if="isRotating" v-if="isRotating"
size="sm"
class="gl-absolute gl-align-self-center gl-right-5 gl-mr-7" class="gl-absolute gl-align-self-center gl-right-5 gl-mr-7"
/> />
......
...@@ -80,7 +80,7 @@ export default { ...@@ -80,7 +80,7 @@ export default {
@focus="fetchEnvironments" @focus="fetchEnvironments"
@keyup="fetchEnvironments" @keyup="fetchEnvironments"
/> />
<gl-loading-icon v-if="isLoading" /> <gl-loading-icon v-if="isLoading" size="sm" />
<gl-dropdown-item <gl-dropdown-item
v-for="environment in results" v-for="environment in results"
v-else-if="results.length" v-else-if="results.length"
......
...@@ -76,7 +76,7 @@ export default { ...@@ -76,7 +76,7 @@ export default {
@focus="fetchUserLists" @focus="fetchUserLists"
@keyup="fetchUserLists" @keyup="fetchUserLists"
/> />
<gl-loading-icon v-if="isLoading" /> <gl-loading-icon v-if="isLoading" size="sm" />
<gl-dropdown-item <gl-dropdown-item
v-for="list in userLists" v-for="list in userLists"
:key="list.id" :key="list.id"
......
...@@ -101,7 +101,7 @@ export default { ...@@ -101,7 +101,7 @@ export default {
<h4 class="gl-display-flex gl-align-items-center"> <h4 class="gl-display-flex gl-align-items-center">
{{ __('Set up shared runner availability') }} {{ __('Set up shared runner availability') }}
<gl-loading-icon v-if="isLoading" class="gl-ml-3" inline /> <gl-loading-icon v-if="isLoading" class="gl-ml-3" size="sm" inline />
</h4> </h4>
<section class="gl-mt-5"> <section class="gl-mt-5">
......
...@@ -57,6 +57,6 @@ export default { ...@@ -57,6 +57,6 @@ export default {
@primaryAction="doAction" @primaryAction="doAction"
> >
<span v-html="message.text"></span> <span v-html="message.text"></span>
<gl-loading-icon v-show="isLoading" inline class="vertical-align-middle ml-1" /> <gl-loading-icon v-show="isLoading" size="sm" inline class="vertical-align-middle ml-1" />
</gl-alert> </gl-alert>
</template> </template>
...@@ -79,7 +79,7 @@ export default { ...@@ -79,7 +79,7 @@ export default {
<gl-icon :name="collapseIcon" class="ide-stage-collapse-icon" /> <gl-icon :name="collapseIcon" class="ide-stage-collapse-icon" />
</div> </div>
<div v-show="!stage.isCollapsed" ref="jobList" class="card-body p-0"> <div v-show="!stage.isCollapsed" ref="jobList" class="card-body p-0">
<gl-loading-icon v-if="showLoadingIcon" /> <gl-loading-icon v-if="showLoadingIcon" size="sm" />
<template v-else> <template v-else>
<item v-for="job in stage.jobs" :key="job.id" :job="job" @clickViewLog="clickViewLog" /> <item v-for="job in stage.jobs" :key="job.id" :job="job" @clickViewLog="clickViewLog" />
</template> </template>
......
...@@ -126,7 +126,11 @@ export default { ...@@ -126,7 +126,11 @@ export default {
class="ide-navigator-location form-control bg-white" class="ide-navigator-location form-control bg-white"
readonly readonly
/> />
<gl-loading-icon v-if="loading" class="position-absolute ide-preview-loading-icon" /> <gl-loading-icon
v-if="loading"
size="sm"
class="position-absolute ide-preview-loading-icon"
/>
</div> </div>
</header> </header>
</template> </template>
...@@ -93,7 +93,7 @@ export default { ...@@ -93,7 +93,7 @@ export default {
<div class="d-flex flex-column flex-fill min-height-0 pr-3"> <div class="d-flex flex-column flex-fill min-height-0 pr-3">
<div class="top-bar d-flex border-left-0 align-items-center"> <div class="top-bar d-flex border-left-0 align-items-center">
<div v-if="loadingText" data-qa-selector="loading_container"> <div v-if="loadingText" data-qa-selector="loading_container">
<gl-loading-icon :inline="true" /> <gl-loading-icon size="sm" :inline="true" />
<span>{{ loadingText }}</span> <span>{{ loadingText }}</span>
</div> </div>
<terminal-controls <terminal-controls
......
...@@ -310,7 +310,7 @@ export default { ...@@ -310,7 +310,7 @@ export default {
> >
<gl-search-box-by-type v-model.trim="searchTerm" /> <gl-search-box-by-type v-model.trim="searchTerm" />
<gl-loading-icon v-if="isFetching" /> <gl-loading-icon v-if="isFetching" size="sm" />
<gl-dropdown-item <gl-dropdown-item
v-for="user in users" v-for="user in users"
...@@ -328,7 +328,7 @@ export default { ...@@ -328,7 +328,7 @@ export default {
</template> </template>
</gl-table> </gl-table>
<gl-loading-icon v-if="isInitialLoadingState" /> <gl-loading-icon v-if="isInitialLoadingState" size="sm" />
<gl-button <gl-button
v-if="hasMoreUsers" v-if="hasMoreUsers"
......
...@@ -20,7 +20,7 @@ export default { ...@@ -20,7 +20,7 @@ export default {
<gl-filtered-search-token :config="config" v-bind="{ ...$attrs }" v-on="$listeners"> <gl-filtered-search-token :config="config" v-bind="{ ...$attrs }" v-on="$listeners">
<template #suggestions> <template #suggestions>
<div class="m-1"> <div class="m-1">
<gl-loading-icon v-if="config.loading" /> <gl-loading-icon v-if="config.loading" size="sm" />
<div v-else class="py-1 px-2 text-muted"> <div v-else class="py-1 px-2 text-muted">
{{ config.noOptionsText }} {{ config.noOptionsText }}
</div> </div>
......
...@@ -202,7 +202,7 @@ export default { ...@@ -202,7 +202,7 @@ export default {
<gl-dropdown-divider /> <gl-dropdown-divider />
<template v-if="isLoading"> <template v-if="isLoading">
<gl-loading-icon /> <gl-loading-icon size="sm" />
<gl-dropdown-divider /> <gl-dropdown-divider />
</template> </template>
<template v-else-if="showNoResults"> <template v-else-if="showNoResults">
......
...@@ -227,7 +227,7 @@ export default { ...@@ -227,7 +227,7 @@ export default {
<template> <template>
<div class="prometheus-alert-widget dropdown flex-grow-2 overflow-hidden"> <div class="prometheus-alert-widget dropdown flex-grow-2 overflow-hidden">
<gl-loading-icon v-if="shouldShowLoadingIcon" :inline="true" /> <gl-loading-icon v-if="shouldShowLoadingIcon" :inline="true" size="sm" />
<span v-else-if="errorMessage" ref="alertErrorMessage" class="alert-error-message">{{ <span v-else-if="errorMessage" ref="alertErrorMessage" class="alert-error-message">{{
errorMessage errorMessage
}}</span> }}</span>
......
...@@ -197,7 +197,7 @@ export default { ...@@ -197,7 +197,7 @@ export default {
<gl-dropdown-section-header>{{ __('Environment') }}</gl-dropdown-section-header> <gl-dropdown-section-header>{{ __('Environment') }}</gl-dropdown-section-header>
<gl-search-box-by-type @input="debouncedEnvironmentsSearch" /> <gl-search-box-by-type @input="debouncedEnvironmentsSearch" />
<gl-loading-icon v-if="environmentsLoading" :inline="true" /> <gl-loading-icon v-if="environmentsLoading" size="sm" :inline="true" />
<div v-else class="flex-fill overflow-auto"> <div v-else class="flex-fill overflow-auto">
<gl-dropdown-item <gl-dropdown-item
v-for="environment in filteredEnvironments" v-for="environment in filteredEnvironments"
......
...@@ -389,7 +389,7 @@ export default { ...@@ -389,7 +389,7 @@ export default {
/> />
<div class="flex-grow-1"></div> <div class="flex-grow-1"></div>
<div v-if="graphDataIsLoading" class="mx-1 mt-1"> <div v-if="graphDataIsLoading" class="mx-1 mt-1">
<gl-loading-icon /> <gl-loading-icon size="sm" />
</div> </div>
<div <div
v-if="isContextualMenuShown" v-if="isContextualMenuShown"
......
...@@ -88,7 +88,7 @@ export default { ...@@ -88,7 +88,7 @@ export default {
@change="formChange" @change="formChange"
/> />
<template #modal-ok> <template #modal-ok>
<gl-loading-icon v-if="loading" inline color="light" /> <gl-loading-icon v-if="loading" size="sm" inline color="light" />
{{ okButtonText }} {{ okButtonText }}
</template> </template>
</gl-modal> </gl-modal>
......
...@@ -61,7 +61,7 @@ export default { ...@@ -61,7 +61,7 @@ export default {
<div v-if="showPanels" ref="graph-group" class="card prometheus-panel"> <div v-if="showPanels" ref="graph-group" class="card prometheus-panel">
<div class="card-header d-flex align-items-center"> <div class="card-header d-flex align-items-center">
<h4 class="flex-grow-1">{{ name }}</h4> <h4 class="flex-grow-1">{{ name }}</h4>
<gl-loading-icon v-if="isLoading" name="loading" /> <gl-loading-icon v-if="isLoading" size="sm" name="loading" />
<a <a
data-testid="group-toggle-button" data-testid="group-toggle-button"
:aria-label="__('Toggle collapse')" :aria-label="__('Toggle collapse')"
......
...@@ -216,6 +216,7 @@ export default { ...@@ -216,6 +216,7 @@ export default {
<gl-loading-icon <gl-loading-icon
v-if="showSpinner" v-if="showSpinner"
ref="spinner" ref="spinner"
size="sm"
class="editing-spinner" class="editing-spinner"
:label="__('Comment is being updated')" :label="__('Comment is being updated')"
/> />
......
...@@ -132,7 +132,7 @@ export default { ...@@ -132,7 +132,7 @@ export default {
@change="updateEvent($event, event)" @change="updateEvent($event, event)"
> >
<strong>{{ event.name }}</strong <strong>{{ event.name }}</strong
><gl-loading-icon v-if="event.loading" :inline="true" class="gl-ml-2" /> ><gl-loading-icon v-if="event.loading" size="sm" :inline="true" class="gl-ml-2" />
</gl-form-checkbox> </gl-form-checkbox>
</gl-form-group> </gl-form-group>
</template> </template>
......
...@@ -475,7 +475,11 @@ export default { ...@@ -475,7 +475,11 @@ export default {
> >
</gl-sprintf> </gl-sprintf>
</gl-alert> </gl-alert>
<gl-loading-icon v-if="isContentEditorLoading" class="bordered-box gl-w-full gl-py-6" /> <gl-loading-icon
v-if="isContentEditorLoading"
size="sm"
class="bordered-box gl-w-full gl-py-6"
/>
<content-editor v-else :content-editor="contentEditor" /> <content-editor v-else :content-editor="contentEditor" />
<input id="wiki_content" v-model.trim="content" type="hidden" name="wiki[content]" /> <input id="wiki_content" v-model.trim="content" type="hidden" name="wiki[content]" />
</div> </div>
......
...@@ -87,7 +87,7 @@ export default { ...@@ -87,7 +87,7 @@ export default {
<template> <template>
<div> <div>
<template v-if="isLoading"> <template v-if="isLoading">
<gl-loading-icon inline /> <gl-loading-icon size="sm" inline />
{{ $options.i18n.loading }} {{ $options.i18n.loading }}
</template> </template>
......
...@@ -161,7 +161,7 @@ export default { ...@@ -161,7 +161,7 @@ export default {
:size="24" :size="24"
css-classes="gl-top-0 gl-pr-2" css-classes="gl-top-0 gl-pr-2"
/> />
<div v-else class="gl-pr-2"><gl-loading-icon inline /></div> <div v-else class="gl-pr-2"><gl-loading-icon size="sm" inline /></div>
<div class="gl-display-flex gl-flex-direction-column gl-w-13"> <div class="gl-display-flex gl-flex-direction-column gl-w-13">
<span class="gl-text-truncate" data-testid="downstream-title"> <span class="gl-text-truncate" data-testid="downstream-title">
{{ downstreamTitle }} {{ downstreamTitle }}
......
...@@ -99,7 +99,7 @@ export default { ...@@ -99,7 +99,7 @@ export default {
class="js-ci-action gl-ci-action-icon-container ci-action-icon-container ci-action-icon-wrapper gl-display-flex gl-align-items-center gl-justify-content-center" class="js-ci-action gl-ci-action-icon-container ci-action-icon-container ci-action-icon-wrapper gl-display-flex gl-align-items-center gl-justify-content-center"
@click.stop="onClickAction" @click.stop="onClickAction"
> >
<gl-loading-icon v-if="isLoading" class="js-action-icon-loading" /> <gl-loading-icon v-if="isLoading" size="sm" class="js-action-icon-loading" />
<gl-icon v-else :name="actionIcon" class="gl-mr-0!" :aria-label="actionIcon" /> <gl-icon v-else :name="actionIcon" class="gl-mr-0!" :aria-label="actionIcon" />
</gl-button> </gl-button>
</template> </template>
...@@ -97,7 +97,7 @@ export default { ...@@ -97,7 +97,7 @@ export default {
{{ $options.i18n.artifactsFetchErrorMessage }} {{ $options.i18n.artifactsFetchErrorMessage }}
</gl-alert> </gl-alert>
<gl-loading-icon v-if="isLoading" /> <gl-loading-icon v-if="isLoading" size="sm" />
<gl-dropdown-item <gl-dropdown-item
v-for="(artifact, i) in artifacts" v-for="(artifact, i) in artifacts"
......
...@@ -120,7 +120,7 @@ export default { ...@@ -120,7 +120,7 @@ export default {
<gl-icon :name="borderlessIcon" /> <gl-icon :name="borderlessIcon" />
</span> </span>
</template> </template>
<gl-loading-icon v-if="isLoading" /> <gl-loading-icon v-if="isLoading" size="sm" />
<ul <ul
v-else v-else
class="js-builds-dropdown-list scrollable-menu" class="js-builds-dropdown-list scrollable-menu"
......
...@@ -96,7 +96,7 @@ export default { ...@@ -96,7 +96,7 @@ export default {
{{ $options.i18n.artifactsFetchErrorMessage }} {{ $options.i18n.artifactsFetchErrorMessage }}
</gl-alert> </gl-alert>
<gl-loading-icon v-if="isLoading" /> <gl-loading-icon v-if="isLoading" size="sm" />
<gl-alert v-else-if="!hasArtifacts" variant="info" :dismissible="false"> <gl-alert v-else-if="!hasArtifacts" variant="info" :dismissible="false">
{{ $options.i18n.noArtifacts }} {{ $options.i18n.noArtifacts }}
......
...@@ -60,7 +60,7 @@ export default { ...@@ -60,7 +60,7 @@ export default {
@input="searchBranches" @input="searchBranches"
> >
<template #suggestions> <template #suggestions>
<gl-loading-icon v-if="loading" /> <gl-loading-icon v-if="loading" size="sm" />
<template v-else> <template v-else>
<gl-filtered-search-suggestion <gl-filtered-search-suggestion
v-for="(branch, index) in branches" v-for="(branch, index) in branches"
......
...@@ -55,7 +55,7 @@ export default { ...@@ -55,7 +55,7 @@ export default {
<template> <template>
<gl-filtered-search-token v-bind="{ ...$props, ...$attrs }" v-on="$listeners" @input="searchTags"> <gl-filtered-search-token v-bind="{ ...$props, ...$attrs }" v-on="$listeners" @input="searchTags">
<template #suggestions> <template #suggestions>
<gl-loading-icon v-if="loading" /> <gl-loading-icon v-if="loading" size="sm" />
<template v-else> <template v-else>
<gl-filtered-search-suggestion v-for="(tag, index) in tags" :key="index" :value="tag"> <gl-filtered-search-suggestion v-for="(tag, index) in tags" :key="index" :value="tag">
{{ tag }} {{ tag }}
......
...@@ -98,7 +98,7 @@ export default { ...@@ -98,7 +98,7 @@ export default {
}}</gl-filtered-search-suggestion> }}</gl-filtered-search-suggestion>
<gl-dropdown-divider /> <gl-dropdown-divider />
<gl-loading-icon v-if="loading" /> <gl-loading-icon v-if="loading" size="sm" />
<template v-else> <template v-else>
<gl-filtered-search-suggestion <gl-filtered-search-suggestion
v-for="user in users" v-for="user in users"
......
...@@ -99,7 +99,7 @@ export default { ...@@ -99,7 +99,7 @@ export default {
{{ branch }} {{ branch }}
</gl-dropdown-item> </gl-dropdown-item>
<gl-dropdown-text v-show="isFetching" data-testid="dropdown-text-loading-icon"> <gl-dropdown-text v-show="isFetching" data-testid="dropdown-text-loading-icon">
<gl-loading-icon class="gl-mx-auto" /> <gl-loading-icon size="sm" class="gl-mx-auto" />
</gl-dropdown-text> </gl-dropdown-text>
<gl-dropdown-text <gl-dropdown-text
v-if="!filteredResults.length && !isFetching" v-if="!filteredResults.length && !isFetching"
......
...@@ -144,7 +144,7 @@ export default { ...@@ -144,7 +144,7 @@ export default {
</span> </span>
</template> </template>
<template v-else> <template v-else>
<gl-loading-icon :inline="true" /> <gl-loading-icon size="sm" :inline="true" />
<span class="sr-only">{{ __('Fetching incoming email') }}</span> <span class="sr-only">{{ __('Fetching incoming email') }}</span>
</template> </template>
......
...@@ -102,7 +102,12 @@ export default { ...@@ -102,7 +102,12 @@ export default {
class="related-issues-loading-icon" class="related-issues-loading-icon"
data-qa-selector="related_issues_loading_placeholder" data-qa-selector="related_issues_loading_placeholder"
> >
<gl-loading-icon ref="loadingIcon" label="Fetching linked issues" class="gl-mt-2" /> <gl-loading-icon
ref="loadingIcon"
size="sm"
label="Fetching linked issues"
class="gl-mt-2"
/>
</div> </div>
<ul ref="list" :class="{ 'content-list': !canReorder }" class="related-items-list"> <ul ref="list" :class="{ 'content-list': !canReorder }" class="related-items-list">
<li <li
......
...@@ -94,7 +94,7 @@ export default { ...@@ -94,7 +94,7 @@ export default {
</div> </div>
<div> <div>
<div v-if="isFetchingMergeRequests" class="qa-related-merge-requests-loading-icon"> <div v-if="isFetchingMergeRequests" class="qa-related-merge-requests-loading-icon">
<gl-loading-icon label="Fetching related merge requests" class="py-2" /> <gl-loading-icon size="sm" label="Fetching related merge requests" class="py-2" />
</div> </div>
<ul v-else class="content-list related-items-list"> <ul v-else class="content-list related-items-list">
<li v-for="mr in mergeRequests" :key="mr.id" class="list-item pt-0 pb-0"> <li v-for="mr in mergeRequests" :key="mr.id" class="list-item pt-0 pb-0">
......
...@@ -150,7 +150,7 @@ export default { ...@@ -150,7 +150,7 @@ export default {
<template> <template>
<div> <div>
<gl-loading-icon v-if="isLoading" /> <gl-loading-icon v-if="isLoading" size="sm" />
<div v-if="blobInfo && !isLoading" class="file-holder"> <div v-if="blobInfo && !isLoading" class="file-holder">
<blob-header <blob-header
:blob="blobInfo" :blob="blobInfo"
......
...@@ -99,7 +99,7 @@ export default { ...@@ -99,7 +99,7 @@ export default {
<span class="dropdown-toggle-text gl-flex-grow-1 gl-text-truncate"> <span class="dropdown-toggle-text gl-flex-grow-1 gl-text-truncate">
{{ selectedItem[name] }} {{ selectedItem[name] }}
</span> </span>
<gl-loading-icon v-if="loading" inline class="gl-mr-3" /> <gl-loading-icon v-if="loading" size="sm" inline class="gl-mr-3" />
<gl-button <gl-button
v-if="!isSelected($options.ANY_OPTION)" v-if="!isSelected($options.ANY_OPTION)"
v-gl-tooltip v-gl-tooltip
......
...@@ -47,7 +47,7 @@ export default { ...@@ -47,7 +47,7 @@ export default {
<template> <template>
<div class="hide-collapsed gl-line-height-20 gl-mb-2 gl-text-gray-900"> <div class="hide-collapsed gl-line-height-20 gl-mb-2 gl-text-gray-900">
{{ assigneeTitle }} {{ assigneeTitle }}
<gl-loading-icon v-if="loading" inline class="align-bottom" /> <gl-loading-icon v-if="loading" size="sm" inline class="align-bottom" />
<a <a
v-if="editable" v-if="editable"
class="js-sidebar-dropdown-toggle edit-link float-right" class="js-sidebar-dropdown-toggle edit-link float-right"
......
...@@ -92,11 +92,11 @@ export default { ...@@ -92,11 +92,11 @@ export default {
@click="onClickCollapsedIcon" @click="onClickCollapsedIcon"
> >
<gl-icon name="users" /> <gl-icon name="users" />
<gl-loading-icon v-if="loading" /> <gl-loading-icon v-if="loading" size="sm" />
<span v-else data-testid="collapsed-count"> {{ participantCount }} </span> <span v-else data-testid="collapsed-count"> {{ participantCount }} </span>
</div> </div>
<div v-if="showParticipantLabel" class="title hide-collapsed gl-mb-2"> <div v-if="showParticipantLabel" class="title hide-collapsed gl-mb-2">
<gl-loading-icon v-if="loading" :inline="true" /> <gl-loading-icon v-if="loading" size="sm" :inline="true" />
{{ participantLabel }} {{ participantLabel }}
</div> </div>
<div class="participants-list hide-collapsed"> <div class="participants-list hide-collapsed">
......
...@@ -35,7 +35,7 @@ export default { ...@@ -35,7 +35,7 @@ export default {
<template> <template>
<div class="hide-collapsed gl-line-height-20 gl-mb-2 gl-text-gray-900"> <div class="hide-collapsed gl-line-height-20 gl-mb-2 gl-text-gray-900">
{{ reviewerTitle }} {{ reviewerTitle }}
<gl-loading-icon v-if="loading" inline class="align-bottom" /> <gl-loading-icon v-if="loading" size="sm" inline class="align-bottom" />
<a <a
v-if="editable" v-if="editable"
class="js-sidebar-dropdown-toggle edit-link float-right" class="js-sidebar-dropdown-toggle edit-link float-right"
......
...@@ -181,7 +181,7 @@ export default { ...@@ -181,7 +181,7 @@ export default {
</gl-dropdown-item> </gl-dropdown-item>
</gl-dropdown> </gl-dropdown>
<gl-loading-icon v-if="isUpdating" :inline="true" /> <gl-loading-icon v-if="isUpdating" size="sm" :inline="true" />
<severity-token v-else-if="!isDropdownShowing" :severity="selectedItem" /> <severity-token v-else-if="!isDropdownShowing" :severity="selectedItem" />
</div> </div>
......
...@@ -334,6 +334,7 @@ export default { ...@@ -334,6 +334,7 @@ export default {
<gl-dropdown-divider /> <gl-dropdown-divider />
<gl-loading-icon <gl-loading-icon
v-if="$apollo.queries.attributesList.loading" v-if="$apollo.queries.attributesList.loading"
size="sm"
class="gl-py-4" class="gl-py-4"
data-testid="loading-icon-dropdown" data-testid="loading-icon-dropdown"
/> />
......
...@@ -117,9 +117,15 @@ export default { ...@@ -117,9 +117,15 @@ export default {
{{ title }} {{ title }}
</span> </span>
<slot name="title-extra"></slot> <slot name="title-extra"></slot>
<gl-loading-icon v-if="loading || initialLoading" inline class="gl-ml-2 hide-collapsed" /> <gl-loading-icon
v-if="loading || initialLoading"
size="sm"
inline
class="gl-ml-2 hide-collapsed"
/>
<gl-loading-icon <gl-loading-icon
v-if="loading && isClassicSidebar" v-if="loading && isClassicSidebar"
size="sm"
inline inline
class="gl-mx-auto gl-my-0 hide-expanded" class="gl-mx-auto gl-my-0 hide-expanded"
/> />
......
...@@ -196,7 +196,7 @@ export default { ...@@ -196,7 +196,7 @@ export default {
class="sidebar-collapsed-icon" class="sidebar-collapsed-icon"
@click="toggleSubscribed" @click="toggleSubscribed"
> >
<gl-loading-icon v-if="isLoading" class="sidebar-item-icon is-active" /> <gl-loading-icon v-if="isLoading" size="sm" class="sidebar-item-icon is-active" />
<gl-icon v-else :name="notificationIcon" :size="16" class="sidebar-item-icon is-active" /> <gl-icon v-else :name="notificationIcon" :size="16" class="sidebar-item-icon is-active" />
</span> </span>
<div v-show="emailsDisabled" class="gl-mt-3 hide-collapsed gl-text-gray-500"> <div v-show="emailsDisabled" class="gl-mt-3 hide-collapsed gl-text-gray-500">
......
...@@ -200,7 +200,7 @@ export default { ...@@ -200,7 +200,7 @@ export default {
/> />
<div class="hide-collapsed gl-line-height-20 gl-text-gray-900"> <div class="hide-collapsed gl-line-height-20 gl-text-gray-900">
{{ __('Time tracking') }} {{ __('Time tracking') }}
<gl-loading-icon v-if="isTimeTrackingInfoLoading" inline /> <gl-loading-icon v-if="isTimeTrackingInfoLoading" size="sm" inline />
<div <div
v-if="!showHelpState" v-if="!showHelpState"
data-testid="helpButton" data-testid="helpButton"
......
...@@ -85,6 +85,6 @@ export default { ...@@ -85,6 +85,6 @@ export default {
:name="collapsedButtonIcon" :name="collapsedButtonIcon"
/> />
<span v-show="!collapsed" class="issuable-todo-inner">{{ buttonLabel }}</span> <span v-show="!collapsed" class="issuable-todo-inner">{{ buttonLabel }}</span>
<gl-loading-icon v-show="isActionActive" :inline="true" /> <gl-loading-icon v-show="isActionActive" size="sm" :inline="true" />
</button> </button>
</template> </template>
...@@ -274,7 +274,7 @@ export default { ...@@ -274,7 +274,7 @@ export default {
data-qa-selector="delete_snippet_button" data-qa-selector="delete_snippet_button"
@click="deleteSnippet" @click="deleteSnippet"
> >
<gl-loading-icon v-if="isDeleting" inline /> <gl-loading-icon v-if="isDeleting" size="sm" inline />
{{ __('Delete snippet') }} {{ __('Delete snippet') }}
</gl-button> </gl-button>
</template> </template>
......
...@@ -137,7 +137,7 @@ export default { ...@@ -137,7 +137,7 @@ export default {
<div v-if="item.loadingLock" class="gl-mx-3"> <div v-if="item.loadingLock" class="gl-mx-3">
<p class="gl-display-flex gl-justify-content-start gl-align-items-baseline gl-m-0"> <p class="gl-display-flex gl-justify-content-start gl-align-items-baseline gl-m-0">
<gl-loading-icon class="gl-pr-1" /> <gl-loading-icon size="sm" class="gl-pr-1" />
{{ loadingLockText(item) }} {{ loadingLockText(item) }}
</p> </p>
</div> </div>
...@@ -146,7 +146,7 @@ export default { ...@@ -146,7 +146,7 @@ export default {
<p <p
class="gl-display-flex gl-justify-content-start gl-align-items-baseline gl-m-0 gl-text-red-500" class="gl-display-flex gl-justify-content-start gl-align-items-baseline gl-m-0 gl-text-red-500"
> >
<gl-loading-icon class="gl-pr-1" /> <gl-loading-icon size="sm" class="gl-pr-1" />
{{ $options.i18n.removing }} {{ $options.i18n.removing }}
</p> </p>
</div> </div>
......
...@@ -136,7 +136,7 @@ export default { ...@@ -136,7 +136,7 @@ export default {
<template> <template>
<div class="mr-info-list clearfix mr-memory-usage js-mr-memory-usage"> <div class="mr-info-list clearfix mr-memory-usage js-mr-memory-usage">
<p v-if="shouldShowLoading" class="usage-info js-usage-info usage-info-loading"> <p v-if="shouldShowLoading" class="usage-info js-usage-info usage-info-loading">
<gl-loading-icon class="usage-info-load-spinner" />{{ <gl-loading-icon size="sm" class="usage-info-load-spinner" />{{
s__('mrWidget|Loading deployment statistics') s__('mrWidget|Loading deployment statistics')
}} }}
</p> </p>
......
...@@ -122,7 +122,7 @@ export default { ...@@ -122,7 +122,7 @@ export default {
</div> </div>
<div v-if="!isCollapsed" class="mr-widget-grouped-section"> <div v-if="!isCollapsed" class="mr-widget-grouped-section">
<div v-if="isLoadingExpanded" class="report-block-container"> <div v-if="isLoadingExpanded" class="report-block-container">
<gl-loading-icon inline /> {{ __('Loading...') }} <gl-loading-icon size="sm" inline /> {{ __('Loading...') }}
</div> </div>
<smart-virtual-list <smart-virtual-list
v-else-if="fullData" v-else-if="fullData"
......
...@@ -64,7 +64,7 @@ export default { ...@@ -64,7 +64,7 @@ export default {
:disabled="isLoading" :disabled="isLoading"
@click="toggleCollapsed" @click="toggleCollapsed"
> >
<gl-loading-icon v-if="isLoading" /> <gl-loading-icon v-if="isLoading" size="sm" />
<gl-icon v-else :name="arrowIconName" class="js-icon" /> <gl-icon v-else :name="arrowIconName" class="js-icon" />
</button> </button>
<template v-if="isCollapsed"> <template v-if="isCollapsed">
......
...@@ -177,7 +177,7 @@ export default { ...@@ -177,7 +177,7 @@ export default {
data-testid="cancelAutomaticMergeButton" data-testid="cancelAutomaticMergeButton"
@click.prevent="cancelAutomaticMerge" @click.prevent="cancelAutomaticMerge"
> >
<gl-loading-icon v-if="isCancellingAutoMerge" inline class="gl-mr-1" /> <gl-loading-icon v-if="isCancellingAutoMerge" size="sm" inline class="gl-mr-1" />
{{ cancelButtonText }} {{ cancelButtonText }}
</a> </a>
</h4> </h4>
...@@ -200,7 +200,7 @@ export default { ...@@ -200,7 +200,7 @@ export default {
data-testid="removeSourceBranchButton" data-testid="removeSourceBranchButton"
@click.prevent="removeSourceBranch" @click.prevent="removeSourceBranch"
> >
<gl-loading-icon v-if="isRemovingSourceBranch" inline class="gl-mr-1" /> <gl-loading-icon v-if="isRemovingSourceBranch" size="sm" inline class="gl-mr-1" />
{{ s__('mrWidget|Delete source branch') }} {{ s__('mrWidget|Delete source branch') }}
</a> </a>
</p> </p>
......
...@@ -63,7 +63,7 @@ export default { ...@@ -63,7 +63,7 @@ export default {
size="small" size="small"
@click="refreshWidget" @click="refreshWidget"
> >
<gl-loading-icon v-if="isRefreshing" :inline="true" /> <gl-loading-icon v-if="isRefreshing" size="sm" :inline="true" />
{{ s__('mrWidget|Refresh') }} {{ s__('mrWidget|Refresh') }}
</gl-button> </gl-button>
</div> </div>
......
...@@ -208,7 +208,7 @@ export default { ...@@ -208,7 +208,7 @@ export default {
</gl-button> </gl-button>
</p> </p>
<p v-if="shouldShowSourceBranchRemoving"> <p v-if="shouldShowSourceBranchRemoving">
<gl-loading-icon :inline="true" /> <gl-loading-icon size="sm" :inline="true" />
<span> {{ s__('mrWidget|The source branch is being deleted') }} </span> <span> {{ s__('mrWidget|The source branch is being deleted') }} </span>
</p> </p>
</section> </section>
......
...@@ -204,7 +204,7 @@ export default { ...@@ -204,7 +204,7 @@ export default {
@click="$emit('toggle-sidebar')" @click="$emit('toggle-sidebar')"
> >
<gl-icon name="user" /> <gl-icon name="user" />
<gl-loading-icon v-if="isUpdating" /> <gl-loading-icon v-if="isUpdating" size="sm" />
</div> </div>
<gl-tooltip :target="() => $refs.assignees" boundary="viewport" placement="left"> <gl-tooltip :target="() => $refs.assignees" boundary="viewport" placement="left">
<gl-sprintf :message="$options.i18n.ASSIGNEES_BLOCK"> <gl-sprintf :message="$options.i18n.ASSIGNEES_BLOCK">
...@@ -270,12 +270,12 @@ export default { ...@@ -270,12 +270,12 @@ export default {
<p v-else-if="userListEmpty" class="gl-mx-5 gl-my-4"> <p v-else-if="userListEmpty" class="gl-mx-5 gl-my-4">
{{ __('No Matching Results') }} {{ __('No Matching Results') }}
</p> </p>
<gl-loading-icon v-else /> <gl-loading-icon v-else size="sm" />
</div> </div>
</gl-dropdown> </gl-dropdown>
</div> </div>
<gl-loading-icon v-if="isUpdating" :inline="true" /> <gl-loading-icon v-if="isUpdating" size="sm" :inline="true" />
<div <div
v-else-if="!isDropdownShowing" v-else-if="!isDropdownShowing"
class="hide-collapsed value gl-m-0" class="hide-collapsed value gl-m-0"
......
...@@ -81,7 +81,7 @@ export default { ...@@ -81,7 +81,7 @@ export default {
<template v-if="sidebarCollapsed"> <template v-if="sidebarCollapsed">
<div ref="status" class="gl-ml-6" data-testid="status-icon" @click="$emit('toggle-sidebar')"> <div ref="status" class="gl-ml-6" data-testid="status-icon" @click="$emit('toggle-sidebar')">
<gl-icon name="status" /> <gl-icon name="status" />
<gl-loading-icon v-if="isUpdating" /> <gl-loading-icon v-if="isUpdating" size="sm" />
</div> </div>
<gl-tooltip :target="() => $refs.status" boundary="viewport" placement="left"> <gl-tooltip :target="() => $refs.status" boundary="viewport" placement="left">
<gl-sprintf :message="s__('AlertManagement|Alert status: %{status}')"> <gl-sprintf :message="s__('AlertManagement|Alert status: %{status}')">
...@@ -120,7 +120,7 @@ export default { ...@@ -120,7 +120,7 @@ export default {
@handle-updating="handleUpdating" @handle-updating="handleUpdating"
/> />
<gl-loading-icon v-if="isUpdating" :inline="true" /> <gl-loading-icon v-if="isUpdating" size="sm" :inline="true" />
<p <p
v-else-if="!isDropdownShowing" v-else-if="!isDropdownShowing"
class="value gl-m-0" class="value gl-m-0"
......
...@@ -89,7 +89,7 @@ export default { ...@@ -89,7 +89,7 @@ export default {
<template> <template>
<div class="nothing-here-block"> <div class="nothing-here-block">
<gl-loading-icon v-if="is($options.STATE_LOADING)" /> <gl-loading-icon v-if="is($options.STATE_LOADING)" size="sm" />
<template v-else> <template v-else>
<gl-alert <gl-alert
v-show="is($options.STATE_ERRORED)" v-show="is($options.STATE_ERRORED)"
......
...@@ -36,7 +36,7 @@ export default { ...@@ -36,7 +36,7 @@ export default {
data-toggle="dropdown" data-toggle="dropdown"
aria-expanded="false" aria-expanded="false"
> >
<gl-loading-icon v-show="isLoading" :inline="true" /> <gl-loading-icon v-show="isLoading" size="sm" :inline="true" />
<slot v-if="$slots.default"></slot> <slot v-if="$slots.default"></slot>
<span v-else class="dropdown-toggle-text"> {{ toggleText }} </span> <span v-else class="dropdown-toggle-text"> {{ toggleText }} </span>
<gl-icon <gl-icon
......
...@@ -85,7 +85,7 @@ export default { ...@@ -85,7 +85,7 @@ export default {
</script> </script>
<template> <template>
<span> <span>
<gl-loading-icon v-if="loading" :inline="true" /> <gl-loading-icon v-if="loading" size="sm" :inline="true" />
<gl-icon v-else-if="isSymlink" name="symlink" :size="size" use-deprecated-sizes /> <gl-icon v-else-if="isSymlink" name="symlink" :size="size" use-deprecated-sizes />
<svg v-else-if="!folder" :key="spriteHref" :class="[iconSizeClass, cssClasses]"> <svg v-else-if="!folder" :key="spriteHref" :class="[iconSizeClass, cssClasses]">
<use v-bind="{ 'xlink:href': spriteHref }" /> <use v-bind="{ 'xlink:href': spriteHref }" />
......
...@@ -189,7 +189,7 @@ export default { ...@@ -189,7 +189,7 @@ export default {
name="suggestions-list" name="suggestions-list"
:suggestions="preloadedSuggestions" :suggestions="preloadedSuggestions"
></slot> ></slot>
<gl-loading-icon v-if="suggestionsLoading" /> <gl-loading-icon v-if="suggestionsLoading" size="sm" />
<template v-else> <template v-else>
<slot name="suggestions-list" :suggestions="availableSuggestions"></slot> <slot name="suggestions-list" :suggestions="availableSuggestions"></slot>
</template> </template>
......
...@@ -97,7 +97,7 @@ export default { ...@@ -97,7 +97,7 @@ export default {
{{ branch.text }} {{ branch.text }}
</gl-filtered-search-suggestion> </gl-filtered-search-suggestion>
<gl-dropdown-divider v-if="defaultBranches.length" /> <gl-dropdown-divider v-if="defaultBranches.length" />
<gl-loading-icon v-if="loading" /> <gl-loading-icon v-if="loading" size="sm" />
<template v-else> <template v-else>
<gl-filtered-search-suggestion <gl-filtered-search-suggestion
v-for="branch in branches" v-for="branch in branches"
......
...@@ -101,7 +101,7 @@ export default { ...@@ -101,7 +101,7 @@ export default {
{{ emoji.value }} {{ emoji.value }}
</gl-filtered-search-suggestion> </gl-filtered-search-suggestion>
<gl-dropdown-divider v-if="defaultEmojis.length" /> <gl-dropdown-divider v-if="defaultEmojis.length" />
<gl-loading-icon v-if="loading" /> <gl-loading-icon v-if="loading" size="sm" />
<template v-else> <template v-else>
<gl-filtered-search-suggestion <gl-filtered-search-suggestion
v-for="emoji in emojis" v-for="emoji in emojis"
......
...@@ -134,7 +134,7 @@ export default { ...@@ -134,7 +134,7 @@ export default {
{{ epic.text }} {{ epic.text }}
</gl-filtered-search-suggestion> </gl-filtered-search-suggestion>
<gl-dropdown-divider v-if="defaultEpics.length" /> <gl-dropdown-divider v-if="defaultEpics.length" />
<gl-loading-icon v-if="loading" /> <gl-loading-icon v-if="loading" size="sm" />
<template v-else> <template v-else>
<gl-filtered-search-suggestion v-for="epic in epics" :key="epic.id" :value="getValue(epic)"> <gl-filtered-search-suggestion v-for="epic in epics" :key="epic.id" :value="getValue(epic)">
{{ epic.title }} {{ epic.title }}
......
...@@ -103,7 +103,7 @@ export default { ...@@ -103,7 +103,7 @@ export default {
{{ iteration.text }} {{ iteration.text }}
</gl-filtered-search-suggestion> </gl-filtered-search-suggestion>
<gl-dropdown-divider v-if="defaultIterations.length" /> <gl-dropdown-divider v-if="defaultIterations.length" />
<gl-loading-icon v-if="loading" /> <gl-loading-icon v-if="loading" size="sm" />
<template v-else> <template v-else>
<gl-filtered-search-suggestion <gl-filtered-search-suggestion
v-for="iteration in iterations" v-for="iteration in iterations"
......
...@@ -102,7 +102,7 @@ export default { ...@@ -102,7 +102,7 @@ export default {
{{ milestone.text }} {{ milestone.text }}
</gl-filtered-search-suggestion> </gl-filtered-search-suggestion>
<gl-dropdown-divider v-if="defaultMilestones.length" /> <gl-dropdown-divider v-if="defaultMilestones.length" />
<gl-loading-icon v-if="loading" /> <gl-loading-icon v-if="loading" size="sm" />
<template v-else> <template v-else>
<gl-filtered-search-suggestion <gl-filtered-search-suggestion
v-for="milestone in milestones" v-for="milestone in milestones"
......
...@@ -111,7 +111,7 @@ export default { ...@@ -111,7 +111,7 @@ export default {
</div> </div>
<div v-if="isApplied" class="badge badge-success">{{ __('Applied') }}</div> <div v-if="isApplied" class="badge badge-success">{{ __('Applied') }}</div>
<div v-else-if="isApplying" class="d-flex align-items-center text-secondary"> <div v-else-if="isApplying" class="d-flex align-items-center text-secondary">
<gl-loading-icon class="d-flex-center mr-2" /> <gl-loading-icon size="sm" class="d-flex-center mr-2" />
<span>{{ applyingSuggestionsMessage }}</span> <span>{{ applyingSuggestionsMessage }}</span>
</div> </div>
<div v-else-if="canApply && isBatched" class="d-flex align-items-center"> <div v-else-if="canApply && isBatched" class="d-flex align-items-center">
......
...@@ -82,7 +82,7 @@ export default { ...@@ -82,7 +82,7 @@ export default {
<span class="attaching-file-message"></span> <span class="attaching-file-message"></span>
<!-- eslint-disable-next-line @gitlab/vue-require-i18n-strings --> <!-- eslint-disable-next-line @gitlab/vue-require-i18n-strings -->
<span class="uploading-progress">0%</span> <span class="uploading-progress">0%</span>
<gl-loading-icon inline /> <gl-loading-icon size="sm" inline />
</span> </span>
<span class="uploading-error-container hide"> <span class="uploading-error-container hide">
<span class="uploading-error-icon"> <span class="uploading-error-icon">
......
...@@ -194,7 +194,7 @@ export default { ...@@ -194,7 +194,7 @@ export default {
<template v-if="selectedPlatform"> <template v-if="selectedPlatform">
<h5> <h5>
{{ $options.i18n.architecture }} {{ $options.i18n.architecture }}
<gl-loading-icon v-if="$apollo.loading" inline /> <gl-loading-icon v-if="$apollo.loading" size="sm" inline />
</h5> </h5>
<gl-dropdown class="gl-mb-3" :text="selectedArchitectureName"> <gl-dropdown class="gl-mb-3" :text="selectedArchitectureName">
......
...@@ -81,7 +81,7 @@ export default { ...@@ -81,7 +81,7 @@ export default {
{{ templateText }} {{ templateText }}
</span> </span>
<gl-loading-icon v-if="isLoading" inline :label="loadingIconLabel" /> <gl-loading-icon v-if="isLoading" size="sm" inline :label="loadingIconLabel" />
<clipboard-button v-else size="small" v-bind="clipboardProps" /> <clipboard-button v-else size="small" v-bind="clipboardProps" />
</div> </div>
</div> </div>
......
...@@ -104,7 +104,7 @@ export default { ...@@ -104,7 +104,7 @@ export default {
<collapsed-calendar-icon :text="collapsedText" class="sidebar-collapsed-icon" /> <collapsed-calendar-icon :text="collapsedText" class="sidebar-collapsed-icon" />
<div class="title"> <div class="title">
{{ label }} {{ label }}
<gl-loading-icon v-if="isLoading" :inline="true" /> <gl-loading-icon v-if="isLoading" size="sm" :inline="true" />
<div class="float-right"> <div class="float-right">
<button <button
v-if="editable && !editing" v-if="editable && !editing"
......
...@@ -148,7 +148,7 @@ export default { ...@@ -148,7 +148,7 @@ export default {
@hide="handleDropdownHide" @hide="handleDropdownHide"
> >
<template #button-content <template #button-content
><gl-loading-icon v-if="moveInProgress" class="gl-mr-3" />{{ ><gl-loading-icon v-if="moveInProgress" size="sm" class="gl-mr-3" />{{
dropdownButtonTitle dropdownButtonTitle
}}</template }}</template
> >
......
...@@ -108,7 +108,7 @@ export default { ...@@ -108,7 +108,7 @@ export default {
class="float-left d-flex align-items-center" class="float-left d-flex align-items-center"
@click="handleCreateClick" @click="handleCreateClick"
> >
<gl-loading-icon v-show="labelCreateInProgress" :inline="true" class="mr-1" /> <gl-loading-icon v-show="labelCreateInProgress" size="sm" :inline="true" class="mr-1" />
{{ __('Create') }} {{ __('Create') }}
</gl-button> </gl-button>
<gl-button class="float-right js-btn-cancel-create" @click="toggleDropdownContentsCreateView"> <gl-button class="float-right js-btn-cancel-create" @click="toggleDropdownContentsCreateView">
......
...@@ -26,7 +26,7 @@ export default { ...@@ -26,7 +26,7 @@ export default {
<div class="hide-collapsed gl-line-height-20 gl-mb-2 gl-text-gray-900"> <div class="hide-collapsed gl-line-height-20 gl-mb-2 gl-text-gray-900">
{{ __('Labels') }} {{ __('Labels') }}
<template v-if="allowLabelEdit"> <template v-if="allowLabelEdit">
<gl-loading-icon v-show="labelsSelectInProgress" inline /> <gl-loading-icon v-show="labelsSelectInProgress" size="sm" inline />
<gl-button <gl-button
variant="link" variant="link"
class="float-right gl-text-gray-900! gl-hover-text-blue-800! js-sidebar-dropdown-toggle" class="float-right gl-text-gray-900! gl-hover-text-blue-800! js-sidebar-dropdown-toggle"
......
...@@ -117,7 +117,7 @@ export default { ...@@ -117,7 +117,7 @@ export default {
data-testid="create-button" data-testid="create-button"
@click="createLabel" @click="createLabel"
> >
<gl-loading-icon v-if="labelCreateInProgress" :inline="true" class="mr-1" /> <gl-loading-icon v-if="labelCreateInProgress" size="sm" :inline="true" class="mr-1" />
{{ __('Create') }} {{ __('Create') }}
</gl-button> </gl-button>
<gl-button <gl-button
......
...@@ -26,7 +26,7 @@ export default { ...@@ -26,7 +26,7 @@ export default {
<div class="title hide-collapsed gl-mb-3"> <div class="title hide-collapsed gl-mb-3">
{{ __('Labels') }} {{ __('Labels') }}
<template v-if="allowLabelEdit"> <template v-if="allowLabelEdit">
<gl-loading-icon v-show="labelsSelectInProgress" inline /> <gl-loading-icon v-show="labelsSelectInProgress" size="sm" inline />
<gl-button <gl-button
variant="link" variant="link"
class="float-right js-sidebar-dropdown-toggle" class="float-right js-sidebar-dropdown-toggle"
......
...@@ -771,6 +771,12 @@ $ide-commit-header-height: 48px; ...@@ -771,6 +771,12 @@ $ide-commit-header-height: 48px;
} }
.dropdown-menu-toggle { .dropdown-menu-toggle {
background-color: var(--ide-input-background, transparent);
&:hover {
background-color: var(--ide-dropdown-btn-hover-background, $white-normal);
}
svg { svg {
vertical-align: middle; vertical-align: middle;
...@@ -779,16 +785,6 @@ $ide-commit-header-height: 48px; ...@@ -779,16 +785,6 @@ $ide-commit-header-height: 48px;
color: var(--ide-text-color-secondary, $gray-500); color: var(--ide-text-color-secondary, $gray-500);
} }
} }
&:hover {
background-color: var(--ide-dropdown-btn-hover-background, $white-normal);
}
}
&.show {
.dropdown-menu-toggle {
background-color: var(--ide-input-background, $white-dark);
}
} }
} }
......
...@@ -13,7 +13,7 @@ class HelpController < ApplicationController ...@@ -13,7 +13,7 @@ class HelpController < ApplicationController
def index def index
# Remove YAML frontmatter so that it doesn't look weird # Remove YAML frontmatter so that it doesn't look weird
@help_index = File.read(Rails.root.join('doc', 'README.md')).sub(YAML_FRONT_MATTER_REGEXP, '') @help_index = File.read(Rails.root.join('doc', 'index.md')).sub(YAML_FRONT_MATTER_REGEXP, '')
# Prefix Markdown links with `help/` unless they are external links. # Prefix Markdown links with `help/` unless they are external links.
# '//' not necessarily part of URL, e.g., mailto:mail@example.com # '//' not necessarily part of URL, e.g., mailto:mail@example.com
......
...@@ -72,27 +72,27 @@ For more information, read the internal issue ...@@ -72,27 +72,27 @@ For more information, read the internal issue
## How to use ## How to use
### In models and services ### In models and integrations
The ReactiveCaching concern can be used in models as well as `project_services` The ReactiveCaching concern can be used in models as well as `integrations`
(`app/models/project_services`). (`app/models/integrations`).
1. Include the concern in your model or service. 1. Include the concern in your model or integration.
When including in a model: To include the concern in a model:
```ruby ```ruby
include ReactiveCaching include ReactiveCaching
``` ```
or when including in a `project_service`: To include the concern in an integration:
```ruby ```ruby
include ReactiveService include ReactiveService
``` ```
1. Implement the `calculate_reactive_cache` method in your model/service. 1. Implement the `calculate_reactive_cache` method in your model or integration.
1. Call `with_reactive_cache` in your model/service where the cached value is needed. 1. Call `with_reactive_cache` in your model or integration where the cached value is needed.
1. Set the [`reactive_cache_work_type` accordingly](#selfreactive_cache_work_type). 1. Set the [`reactive_cache_work_type` accordingly](#selfreactive_cache_work_type).
### In controllers ### In controllers
......
...@@ -125,7 +125,7 @@ export default { ...@@ -125,7 +125,7 @@ export default {
@input="$emit('fetchGroups', $event)" @input="$emit('fetchGroups', $event)"
/> />
</template> </template>
<gl-loading-icon v-if="isLoadingGroups" /> <gl-loading-icon v-if="isLoadingGroups" size="sm" />
<template v-else> <template v-else>
<gl-dropdown-item <gl-dropdown-item
v-for="group in groups" v-for="group in groups"
......
...@@ -158,7 +158,7 @@ export default { ...@@ -158,7 +158,7 @@ export default {
</template> </template>
<template #suggestions> <template #suggestions>
<template v-if="suggestionsLoading"> <template v-if="suggestionsLoading">
<gl-loading-icon /> <gl-loading-icon size="sm" />
</template> </template>
<template v-else-if="hasSuggestions"> <template v-else-if="hasSuggestions">
<gl-filtered-search-suggestion <gl-filtered-search-suggestion
......
...@@ -165,7 +165,7 @@ export default { ...@@ -165,7 +165,7 @@ export default {
</div> </div>
<div class="dropdown-content"></div> <div class="dropdown-content"></div>
<div class="dropdown-loading"> <div class="dropdown-loading">
<gl-loading-icon /> <gl-loading-icon size="sm" />
</div> </div>
</div> </div>
</div> </div>
......
...@@ -58,7 +58,7 @@ export default { ...@@ -58,7 +58,7 @@ export default {
<template> <template>
<div class="dropdown-assignees-list"> <div class="dropdown-assignees-list">
<div v-if="loading" class="dropdown-loading"><gl-loading-icon /></div> <div v-if="loading" class="dropdown-loading"><gl-loading-icon size="sm" /></div>
<list-filter @onSearchInput="handleSearch" /> <list-filter @onSearchInput="handleSearch" />
<list-content <list-content
v-if="!loading" v-if="!loading"
......
...@@ -131,7 +131,7 @@ export default { ...@@ -131,7 +131,7 @@ export default {
/> />
</div> </div>
<div class="dropdown-content"></div> <div class="dropdown-content"></div>
<div class="dropdown-loading"><gl-loading-icon /></div> <div class="dropdown-loading"><gl-loading-icon size="sm" /></div>
</div> </div>
</div> </div>
</div> </div>
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment