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
32b43af3
Commit
32b43af3
authored
Feb 10, 2021
by
Austin Regnery
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated flash message
parent
0a43814d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
app/assets/javascripts/protected_tags/constants.js
app/assets/javascripts/protected_tags/constants.js
+1
-1
app/assets/javascripts/protected_tags/protected_tag_edit.js
app/assets/javascripts/protected_tags/protected_tag_edit.js
+2
-2
ee/app/assets/javascripts/protected_tags/protected_tag_edit.js
...p/assets/javascripts/protected_tags/protected_tag_edit.js
+2
-2
No files found.
app/assets/javascripts/protected_tags/constants.js
View file @
32b43af3
import
{
s__
}
from
'
~/locale
'
;
export
const
FAILED_TO_UPDATE_TAG_MESS
S
AGE
=
s__
(
'
ProjectSettings|Failed to update tag!
'
);
export
const
FAILED_TO_UPDATE_TAG_MESSAGE
=
s__
(
'
ProjectSettings|Failed to update tag!
'
);
app/assets/javascripts/protected_tags/protected_tag_edit.js
View file @
32b43af3
import
{
s__
}
from
'
~/locale
'
;
import
{
deprecatedCreateFlash
as
flash
}
from
'
../flash
'
;
import
axios
from
'
../lib/utils/axios_utils
'
;
import
ProtectedTagAccessDropdown
from
'
./protected_tag_access_dropdown
'
;
import
{
FAILED_TO_UPDATE_TAG_MESSAGE
}
from
'
./constants
'
;
export
default
class
ProtectedTagEdit
{
constructor
(
options
)
{
...
...
@@ -49,7 +49,7 @@ export default class ProtectedTagEdit {
this
.
$allowedToCreateDropdownButton
.
enable
();
window
.
scrollTo
({
top
:
0
,
behavior
:
'
smooth
'
});
flash
(
s__
(
'
ProjectSettings|Failed to update tag!
'
)
);
flash
(
FAILED_TO_UPDATE_TAG_MESSAGE
);
});
}
}
ee/app/assets/javascripts/protected_tags/protected_tag_edit.js
View file @
32b43af3
...
...
@@ -2,7 +2,7 @@ import { find } from 'lodash';
import
AccessDropdown
from
'
~/projects/settings/access_dropdown
'
;
import
axios
from
'
~/lib/utils/axios_utils
'
;
import
{
deprecatedCreateFlash
as
createFlash
}
from
'
~/flash
'
;
import
{
s__
}
from
'
~/locale
'
;
import
{
FAILED_TO_UPDATE_TAG_MESSAGE
}
from
'
~/protected_tags/constants
'
;
import
{
ACCESS_LEVELS
,
LEVEL_TYPES
}
from
'
./constants
'
;
export
default
class
ProtectedTagEdit
{
...
...
@@ -67,7 +67,7 @@ export default class ProtectedTagEdit {
})
.
catch
(()
=>
{
window
.
scrollTo
({
top
:
0
,
behavior
:
'
smooth
'
});
createFlash
(
s__
(
'
ProjectSettings|Failed to update tag!
'
)
);
createFlash
(
FAILED_TO_UPDATE_TAG_MESSAGE
);
});
}
...
...
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