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
e501fb59
Commit
e501fb59
authored
Aug 12, 2020
by
Paul Slaughter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add 'for' to 'File' label for snippet_file_path
parent
3610b817
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
2 deletions
+7
-2
app/assets/javascripts/snippets/components/snippet_blob_actions_edit.vue
...scripts/snippets/components/snippet_blob_actions_edit.vue
+1
-1
app/assets/javascripts/snippets/components/snippet_blob_edit.vue
...ets/javascripts/snippets/components/snippet_blob_edit.vue
+5
-1
spec/frontend/snippets/components/__snapshots__/snippet_blob_edit_spec.js.snap
...s/components/__snapshots__/snippet_blob_edit_spec.js.snap
+1
-0
No files found.
app/assets/javascripts/snippets/components/snippet_blob_actions_edit.vue
View file @
e501fb59
...
@@ -16,7 +16,7 @@ export default {
...
@@ -16,7 +16,7 @@ export default {
<
template
>
<
template
>
<div
class=
"form-group file-editor"
>
<div
class=
"form-group file-editor"
>
<label>
{{
s__
(
'
Snippets|File
'
)
}}
</label>
<label
for=
"snippet_file_path"
>
{{
s__
(
'
Snippets|File
'
)
}}
</label>
<template
v-if=
"blobs.length"
>
<template
v-if=
"blobs.length"
>
<snippet-blob-edit
v-for=
"blob in blobs"
:key=
"blob.name"
:blob=
"blob"
v-on=
"$listeners"
/>
<snippet-blob-edit
v-for=
"blob in blobs"
:key=
"blob.name"
:blob=
"blob"
v-on=
"$listeners"
/>
</
template
>
</
template
>
...
...
app/assets/javascripts/snippets/components/snippet_blob_edit.vue
View file @
e501fb59
...
@@ -92,7 +92,11 @@ export default {
...
@@ -92,7 +92,11 @@ export default {
</
script
>
</
script
>
<
template
>
<
template
>
<div
class=
"file-holder snippet"
>
<div
class=
"file-holder snippet"
>
<blob-header-edit
v-model=
"filePath"
data-qa-selector=
"file_name_field"
/>
<blob-header-edit
id=
"snippet_file_path"
v-model=
"filePath"
data-qa-selector=
"file_name_field"
/>
<gl-loading-icon
<gl-loading-icon
v-if=
"isContentLoading"
v-if=
"isContentLoading"
:label=
"__('Loading snippet')"
:label=
"__('Loading snippet')"
...
...
spec/frontend/snippets/components/__snapshots__/snippet_blob_edit_spec.js.snap
View file @
e501fb59
...
@@ -6,6 +6,7 @@ exports[`Snippet Blob Edit component rendering matches the snapshot 1`] = `
...
@@ -6,6 +6,7 @@ exports[`Snippet Blob Edit component rendering matches the snapshot 1`] = `
>
>
<blob-header-edit-stub
<blob-header-edit-stub
data-qa-selector="file_name_field"
data-qa-selector="file_name_field"
id="snippet_file_path"
value="lorem.txt"
value="lorem.txt"
/>
/>
...
...
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