Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
97af6143
Commit
97af6143
authored
Jun 14, 2021
by
Paul Gascou-Vaillancourt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Migrate goAway to hide
parent
39b9d1c9
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
app/assets/javascripts/blob/file_template_mediator.js
app/assets/javascripts/blob/file_template_mediator.js
+1
-1
app/assets/javascripts/self_monitor/components/self_monitor_form.vue
...javascripts/self_monitor/components/self_monitor_form.vue
+1
-1
ee/app/assets/javascripts/approvals/components/app.vue
ee/app/assets/javascripts/approvals/components/app.vue
+3
-3
ee/app/assets/javascripts/security_dashboard/store/modules/vulnerabilities/actions.js
...curity_dashboard/store/modules/vulnerabilities/actions.js
+1
-1
No files found.
app/assets/javascripts/blob/file_template_mediator.js
View file @
97af6143
...
@@ -145,7 +145,7 @@ export default class FileTemplateMediator {
...
@@ -145,7 +145,7 @@ export default class FileTemplateMediator {
text
:
__
(
'
Undo
'
),
text
:
__
(
'
Undo
'
),
onClick
:
(
e
,
toastObj
)
=>
{
onClick
:
(
e
,
toastObj
)
=>
{
self
.
restoreFromCache
();
self
.
restoreFromCache
();
toastObj
.
goAway
(
0
);
toastObj
.
hide
(
);
},
},
},
},
});
});
...
...
app/assets/javascripts/self_monitor/components/self_monitor_form.vue
View file @
97af6143
...
@@ -82,7 +82,7 @@ export default {
...
@@ -82,7 +82,7 @@ export default {
text
:
this
.
alertContent
.
actionText
,
text
:
this
.
alertContent
.
actionText
,
onClick
:
(
_
,
toastObject
)
=>
{
onClick
:
(
_
,
toastObject
)
=>
{
this
[
this
.
alertContent
.
actionName
]();
this
[
this
.
alertContent
.
actionName
]();
toastObject
.
goAway
(
0
);
toastObject
.
hide
(
);
},
},
},
},
};
};
...
...
ee/app/assets/javascripts/approvals/components/app.vue
View file @
97af6143
...
@@ -44,12 +44,12 @@ export default {
...
@@ -44,12 +44,12 @@ export default {
const
{
targetBranch
}
=
this
;
const
{
targetBranch
}
=
this
;
return
this
.
fetchRules
({
targetBranch
,
resetToDefault
:
true
}).
then
(()
=>
{
return
this
.
fetchRules
({
targetBranch
,
resetToDefault
:
true
}).
then
(()
=>
{
const
toast
=
showToast
(
__
(
'
Approval rules reset to project defaults
'
),
{
showToast
(
__
(
'
Approval rules reset to project defaults
'
),
{
action
:
{
action
:
{
text
:
__
(
'
Undo
'
),
text
:
__
(
'
Undo
'
),
onClick
:
()
=>
{
onClick
:
(
_
,
toast
)
=>
{
this
.
undoRulesChange
();
this
.
undoRulesChange
();
toast
.
goAway
(
0
);
toast
.
hide
(
);
},
},
},
},
});
});
...
...
ee/app/assets/javascripts/security_dashboard/store/modules/vulnerabilities/actions.js
View file @
97af6143
...
@@ -243,7 +243,7 @@ export const dismissVulnerability = (
...
@@ -243,7 +243,7 @@ export const dismissVulnerability = (
dispatch
(
'
revertDismissVulnerability
'
,
{
vulnerability
})
dispatch
(
'
revertDismissVulnerability
'
,
{
vulnerability
})
.
then
(()
=>
dispatch
(
'
fetchVulnerabilities
'
,
{
page
}))
.
then
(()
=>
dispatch
(
'
fetchVulnerabilities
'
,
{
page
}))
.
catch
(()
=>
{});
.
catch
(()
=>
{});
toastObject
.
goAway
(
0
);
toastObject
.
hide
(
);
}
}
},
},
},
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment