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
Hide 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
>
import
{
GlLink
}
from
'
@gitlab/ui
'
;
import
FilteredSearchDropdown
from
'
~/vue_shared/components/filtered_search_dropdown.vue
'
;
import
ReviewAppLink
from
'
../review_app_link.vue
'
;
...
...
@@ -6,6 +7,7 @@ export default {
name
:
'
DeploymentViewButton
'
,
components
:
{
FilteredSearchDropdown
,
GlLink
,
ReviewAppLink
,
VisualReviewAppLink
:
()
=>
import
(
'
ee_component/vue_merge_request_widget/components/visual_review_app_link.vue
'
),
...
...
@@ -67,7 +69,7 @@ export default {
</
template
>
<
template
slot=
"result"
slot-scope=
"slotProps"
>
<
a
<
gl-link
:href=
"slotProps.result.external_url"
target=
"_blank"
rel=
"noopener noreferrer nofollow"
...
...
@@ -80,16 +82,15 @@ export default {
<p
class=
"text-secondary str-truncated-100 append-bottom-0 d-block"
>
{{
slotProps
.
result
.
external_url
}}
</p>
</
a
>
</
gl-link
>
</
template
>
</filtered-search-dropdown>
<
template
v-else
>
<review-app-link
:display=
"appButtonText"
:link=
"deploymentExternalUrl"
css-class=
"js-deploy-url deploy-link btn btn-default btn-sm inline"
/>
</
template
>
<review-app-link
v-else
:display=
"appButtonText"
:link=
"deploymentExternalUrl"
css-class=
"js-deploy-url deploy-link btn btn-default btn-sm inline"
/>
<visual-review-app-link
v-if=
"showVisualReviewApp"
: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