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
8b5075d6
Commit
8b5075d6
authored
Feb 20, 2020
by
Sarah GP
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add component, remove template
parent
b2666425
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
+10
-9
app/assets/javascripts/vue_merge_request_widget/components/deployment/deployment_view_button.vue
...t_widget/components/deployment/deployment_view_button.vue
+10
-9
No files found.
app/assets/javascripts/vue_merge_request_widget/components/deployment/deployment_view_button.vue
View file @
8b5075d6
<
script
>
<
script
>
import
{
GlLink
}
from
'
@gitlab/ui
'
;
import
FilteredSearchDropdown
from
'
~/vue_shared/components/filtered_search_dropdown.vue
'
;
import
FilteredSearchDropdown
from
'
~/vue_shared/components/filtered_search_dropdown.vue
'
;
import
ReviewAppLink
from
'
../review_app_link.vue
'
;
import
ReviewAppLink
from
'
../review_app_link.vue
'
;
...
@@ -6,6 +7,7 @@ export default {
...
@@ -6,6 +7,7 @@ export default {
name
:
'
DeploymentViewButton
'
,
name
:
'
DeploymentViewButton
'
,
components
:
{
components
:
{
FilteredSearchDropdown
,
FilteredSearchDropdown
,
GlLink
,
ReviewAppLink
,
ReviewAppLink
,
VisualReviewAppLink
:
()
=>
VisualReviewAppLink
:
()
=>
import
(
'
ee_component/vue_merge_request_widget/components/visual_review_app_link.vue
'
),
import
(
'
ee_component/vue_merge_request_widget/components/visual_review_app_link.vue
'
),
...
@@ -67,7 +69,7 @@ export default {
...
@@ -67,7 +69,7 @@ export default {
</
template
>
</
template
>
<
template
slot=
"result"
slot-scope=
"slotProps"
>
<
template
slot=
"result"
slot-scope=
"slotProps"
>
<
a
<
gl-link
:href=
"slotProps.result.external_url"
:href=
"slotProps.result.external_url"
target=
"_blank"
target=
"_blank"
rel=
"noopener noreferrer nofollow"
rel=
"noopener noreferrer nofollow"
...
@@ -80,16 +82,15 @@ export default {
...
@@ -80,16 +82,15 @@ export default {
<p
class=
"text-secondary str-truncated-100 append-bottom-0 d-block"
>
<p
class=
"text-secondary str-truncated-100 append-bottom-0 d-block"
>
{{
slotProps
.
result
.
external_url
}}
{{
slotProps
.
result
.
external_url
}}
</p>
</p>
</
a
>
</
gl-link
>
</
template
>
</
template
>
</filtered-search-dropdown>
</filtered-search-dropdown>
<
template
v-else
>
<review-app-link
<review-app-link
v-else
:display=
"appButtonText"
:display=
"appButtonText"
:link=
"deploymentExternalUrl"
:link=
"deploymentExternalUrl"
css-class=
"js-deploy-url deploy-link btn btn-default btn-sm inline"
css-class=
"js-deploy-url deploy-link btn btn-default btn-sm inline"
/>
/>
</
template
>
<visual-review-app-link
<visual-review-app-link
v-if=
"showVisualReviewApp"
v-if=
"showVisualReviewApp"
:link=
"deploymentExternalUrl"
:link=
"deploymentExternalUrl"
...
...
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