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
c5d39d18
Commit
c5d39d18
authored
Aug 14, 2020
by
Taurie Davis
Committed by
Miguel Rincon
Aug 14, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Migrate issue board remove issue bs button to GlButton
parent
0a3c501a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
2 deletions
+34
-2
app/assets/javascripts/boards/components/sidebar/remove_issue.vue
...ts/javascripts/boards/components/sidebar/remove_issue.vue
+6
-2
spec/frontend/boards/components/sidebar/remove_issue_spec.js
spec/frontend/boards/components/sidebar/remove_issue_spec.js
+28
-0
No files found.
app/assets/javascripts/boards/components/sidebar/remove_issue.vue
View file @
c5d39d18
...
...
@@ -3,8 +3,12 @@ import axios from '~/lib/utils/axios_utils';
import
Flash
from
'
../../../flash
'
;
import
{
__
}
from
'
../../../locale
'
;
import
boardsStore
from
'
../../stores/boards_store
'
;
import
{
GlButton
}
from
'
@gitlab/ui
'
;
export
default
{
components
:
{
GlButton
,
},
props
:
{
issue
:
{
type
:
Object
,
...
...
@@ -75,8 +79,8 @@ export default {
</
script
>
<
template
>
<div
class=
"block list"
>
<
button
class=
"btn btn-default btn-block"
type=
"button
"
@
click=
"removeIssue"
>
<
gl-button
variant=
"default"
category=
"secondary"
block=
"block
"
@
click=
"removeIssue"
>
{{
__
(
'
Remove from board
'
)
}}
</button>
</
gl-
button>
</div>
</
template
>
spec/frontend/boards/components/sidebar/remove_issue_spec.js
0 → 100644
View file @
c5d39d18
import
{
shallowMount
}
from
'
@vue/test-utils
'
;
import
{
GlButton
}
from
'
@gitlab/ui
'
;
import
RemoveIssue
from
'
~/boards/components/sidebar/remove_issue.vue
'
;
describe
(
'
boards sidebar remove issue
'
,
()
=>
{
let
wrapper
;
const
findButton
=
()
=>
wrapper
.
find
(
GlButton
);
const
createComponent
=
propsData
=>
{
wrapper
=
shallowMount
(
RemoveIssue
,
{
propsData
:
{
issue
:
{},
list
:
{},
...
propsData
,
},
});
};
beforeEach
(()
=>
{
createComponent
();
});
it
(
'
renders remove button
'
,
()
=>
{
expect
(
findButton
().
exists
()).
toBe
(
true
);
});
});
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