Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Monster
Manage
Activity
Members
Plan
Jira
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OSS
Libraries
Javascript
Monster
Commits
45e23290
Verified
Commit
45e23290
authored
2 months ago
by
Volker Schukai
Browse files
Options
Downloads
Patches
Plain Diff
fix(api-bar): response is not available in catch
parent
620ab249
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
source/components/form/api-bar.mjs
+1
-1
1 addition, 1 deletion
source/components/form/api-bar.mjs
source/components/form/message-state-button.mjs
+1
-1
1 addition, 1 deletion
source/components/form/message-state-button.mjs
with
2 additions
and
2 deletions
source/components/form/api-bar.mjs
+
1
−
1
View file @
45e23290
...
...
@@ -497,7 +497,7 @@ function executeAPIButton(event, opts) {
}
if
(
isFunction
(
failedApiCall
))
{
failedApiCall
.
call
(
self
,
button
,
error
,
response
);
failedApiCall
.
call
(
self
,
button
,
error
);
}
else
if
(
button
instanceof
MessageStateButton
||
button
instanceof
StateButton
...
...
This diff is collapsed.
Click to expand it.
source/components/form/message-state-button.mjs
+
1
−
1
View file @
45e23290
...
...
@@ -99,7 +99,7 @@ class MessageStateButton extends Popper {
* @property {string|HTMLElement} message.content The message content
* @property {string} message.title The message title
* @property {string} message.icon The message icon
* @property {string} mode The mode of the button
* @property {string} mode The mode of the button
, can be `manual` or `submit`
* @property {string} labels.button Button label
* @property {boolean} features.disableButton Disable the button
* @property {Object} aria Aria attributes
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment