Skip to content
Snippets Groups Projects
Commit 60a067ad authored by Filipa Lacerda's avatar Filipa Lacerda
Browse files

Implements basic filter

parent d0b4c529
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -127,7 +127,9 @@ export default {
:items="deployment.changes"
:main-action-link="deployment.external_url"
>
<template slot="mainAction" slot-scope="slotProps">
<template
slot="mainAction"
slot-scope="slotProps">
<a
:href="deployment.external_url"
target="_blank"
Loading
Loading
@@ -142,7 +144,9 @@ export default {
</a>
</template>
 
<template slot="result" slot-scope="slotProps">
<template
slot="result"
slot-scope="slotProps">
<a
:href="slotProps.result.external_url"
target="_blank"
Loading
Loading
Loading
Loading
@@ -247,35 +247,35 @@ export default {
this.setFaviconHelper();
// this.initDeploymentsPolling();
this.mr.deployments = [
{
id: 40,
name: 'review/root-master-patch-91341',
url: '/root/test-pages/environments/40',
metrics_url: null,
metrics_monitoring_url: '/root/test-pages/environments/40/metrics',
stop_url: '/root/test-pages/environments/40/stop',
external_url: 'http://root-master-patch-91341.volatile-watch.surge.sh',
external_url_formatted: 'root-master-patch-91341.volatile-watch.surge.sh',
deployed_at: '2018-10-12T13:08:21.839Z',
deployed_at_formatted: 'Oct 12, 2018 1:08pm',
changes: [
{
path: 'index.html',
external_url:
{
id: 40,
name: 'review/root-master-patch-91341',
url: '/root/test-pages/environments/40',
metrics_url: null,
metrics_monitoring_url: '/root/test-pages/environments/40/metrics',
stop_url: '/root/test-pages/environments/40/stop',
external_url: 'http://root-master-patch-91341.volatile-watch.surge.sh',
external_url_formatted: 'root-master-patch-91341.volatile-watch.surge.sh',
deployed_at: '2018-10-12T13:08:21.839Z',
deployed_at_formatted: 'Oct 12, 2018 1:08pm',
changes: [
{
path: 'index.html',
external_url:
'http://root-master-patch-91341.volatile-watch.surge.sh/index.html',
},
{
path: 'imgs/gallery.html',
external_url:
},
{
path: 'imgs/gallery.html',
external_url:
'http://root-master-patch-91341.volatile-watch.surge.sh/imgs/gallery.html',
},
{
path: 'about/',
external_url: 'http://root-master-patch-91341.volatile-watch.surge.sh/about/',
},
],
},
];
},
{
path: 'about/',
external_url: 'http://root-master-patch-91341.volatile-watch.surge.sh/about/',
},
],
},
];
},
},
};
Loading
Loading
Loading
Loading
@@ -24,11 +24,6 @@
),
default: 'default',
},
mainActionLink: {
type: String,
required: false,
default: null,
},
items: {
type: Array,
required: true,
Loading
Loading
@@ -50,8 +45,10 @@
return `btn btn-${this.color}`;
},
},
methods: {
onType() {},
watch: {
filter(newVal) {
this.filteredResults = this.items.filter((item) => item.path.includes(newVal));
},
},
};
</script>
Loading
Loading
@@ -97,23 +94,11 @@
name="result"
:result="result"
>
<li class="dropdown-item" :key="i">{{ result }}</li>
<li
:key="i"
class="dropdown-item">{{ result }}</li>
</slot>
</template>
</div>
</div>
</template>
<style>
.dropdown-menu {
padding: 8px;
};
.search-icon {
top: 10px;
right: 10px;
}
.dropdown-item {
padding: 8px;
}
</style>
Loading
Loading
@@ -916,6 +916,10 @@
top: $gl-padding-top;
right: $gl-padding-top;
}
.dropdown-item {
padding: $gl-padding-8;
}
}
}
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment