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
363257ca
Commit
363257ca
authored
Sep 11, 2020
by
clenneville
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update template selector buttons to gl components
parent
1c72c599
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
app/assets/javascripts/ide/components/new_dropdown/modal.vue
app/assets/javascripts/ide/components/new_dropdown/modal.vue
+7
-5
No files found.
app/assets/javascripts/ide/components/new_dropdown/modal.vue
View file @
363257ca
<
script
>
import
{
mapActions
,
mapState
,
mapGetters
}
from
'
vuex
'
;
import
{
GlModal
}
from
'
@gitlab/ui
'
;
import
{
GlModal
,
GlButton
}
from
'
@gitlab/ui
'
;
import
{
deprecatedCreateFlash
as
flash
}
from
'
~/flash
'
;
import
{
__
,
sprintf
,
s__
}
from
'
~/locale
'
;
import
{
modalTypes
}
from
'
../../constants
'
;
...
...
@@ -9,6 +9,7 @@ import { trimPathComponents, getPathParent } from '../../utils';
export
default
{
components
:
{
GlModal
,
GlButton
,
},
data
()
{
return
{
...
...
@@ -156,13 +157,14 @@ export default {
/>
<ul
v-if=
"isCreatingNewFile"
class=
"file-templates gl-mt-3 list-inline qa-template-list"
>
<li
v-for=
"(template, index) in templateTypes"
:key=
"index"
class=
"list-inline-item"
>
<button
type=
"button"
class=
"btn btn-missing p-1 pr-2 pl-2"
<gl-button
variant=
"dashed"
category=
"secondary"
class=
"p-1 pr-2 pl-2"
@
click=
"createFromTemplate(template)"
>
{{
template
.
name
}}
</button>
</
gl-
button>
</li>
</ul>
</div>
...
...
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