Commit 59c288db authored by Natalia Tepluhina's avatar Natalia Tepluhina

Merge branch 'replace-dep-scoped-slot-syntax-deployment' into 'master'

Replace slot and scope slot with new syntax

See merge request gitlab-org/gitlab!37638
parents f0366a80 2dc0cf74
...@@ -60,28 +60,24 @@ export default { ...@@ -60,28 +60,24 @@ export default {
:main-action-link="deploymentExternalUrl" :main-action-link="deploymentExternalUrl"
filter-key="path" filter-key="path"
> >
<template slot="mainAction" slot-scope="slotProps"> <template #mainAction="{ className }">
<review-app-link <review-app-link
:display="appButtonText" :display="appButtonText"
:link="deploymentExternalUrl" :link="deploymentExternalUrl"
:css-class="`deploy-link js-deploy-url inline ${slotProps.className}`" :css-class="`deploy-link js-deploy-url inline ${className}`"
/> />
</template> </template>
<template slot="result" slot-scope="slotProps"> <template #result="{ result }">
<gl-link <gl-link
:href="slotProps.result.external_url" :href="result.external_url"
target="_blank" target="_blank"
rel="noopener noreferrer nofollow" rel="noopener noreferrer nofollow"
class="js-deploy-url-menu-item menu-item" class="js-deploy-url-menu-item menu-item"
> >
<strong class="str-truncated-100 gl-mb-0 d-block"> <strong class="str-truncated-100 gl-mb-0 d-block">{{ result.path }}</strong>
{{ slotProps.result.path }}
</strong>
<p class="text-secondary str-truncated-100 gl-mb-0 d-block"> <p class="text-secondary str-truncated-100 gl-mb-0 d-block">{{ result.external_url }}</p>
{{ slotProps.result.external_url }}
</p>
</gl-link> </gl-link>
</template> </template>
</filtered-search-dropdown> </filtered-search-dropdown>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment