Skip to content
代码片段 群组 项目
提交 d08d8e9a 编辑于 作者: Phil Hughes's avatar Phil Hughes
浏览文件

Merge branch 'tor/defect/diffs-multiple-tab-spinners' into 'master'

Reduce spinners shown on switching MR tabs :woozy_face:

See merge request https://gitlab.com/gitlab-org/gitlab/-/merge_requests/104201



Merged-by: default avatarPhil Hughes <me@iamphill.com>
Approved-by: default avatarStanislav Lashmanov <slashmanov@gitlab.com>
Approved-by: default avatarPhil Hughes <me@iamphill.com>
Co-authored-by: default avatarThomas Randolph <trandolph@gitlab.com>
No related branches found
No related tags found
无相关合并请求
......@@ -261,6 +261,8 @@ export default class MergeRequestTabs {
}
tabShown(action, href, shouldScroll = true) {
toggleLoader(false);
if (action !== this.currentTab && this.mergeRequestTabs) {
this.currentTab = action;
......@@ -477,8 +479,6 @@ export default class MergeRequestTabs {
return;
}
toggleLoader(true);
loadDiffs({
// We extract pathname for the current Changes tab anchor href
// some pages like MergeRequestsController#new has query parameters on that anchor
......@@ -496,9 +496,6 @@ export default class MergeRequestTabs {
createAlert({
message: __('An error occurred while fetching this tab.'),
});
})
.finally(() => {
toggleLoader(false);
});
}
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册