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
a6cec3bb
Commit
a6cec3bb
authored
May 07, 2020
by
David O'Regan
Committed by
Kushal Pandya
May 07, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update mobile view for alert lists
parent
793b0ffd
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
2 deletions
+39
-2
app/assets/javascripts/alert_management/components/alert_management_list.vue
...pts/alert_management/components/alert_management_list.vue
+13
-2
app/assets/stylesheets/pages/alerts_list.scss
app/assets/stylesheets/pages/alerts_list.scss
+21
-0
changelogs/unreleased/214522-list.yml
changelogs/unreleased/214522-list.yml
+5
-0
No files found.
app/assets/javascripts/alert_management/components/alert_management_list.vue
View file @
a6cec3bb
...
...
@@ -13,6 +13,8 @@ import { s__ } from '~/locale';
import
TimeAgo
from
'
~/vue_shared/components/time_ago_tooltip.vue
'
;
import
getAlerts
from
'
../graphql/queries/getAlerts.query.graphql
'
;
const
tdClass
=
'
table-col d-flex d-md-table-cell align-items-center
'
;
export
default
{
i18n
:
{
noAlertsMsg
:
s__
(
...
...
@@ -26,29 +28,34 @@ export default {
{
key
:
'
severity
'
,
label
:
s__
(
'
AlertManagement|Severity
'
),
tdClass
:
`
${
tdClass
}
rounded-top text-capitalize`
,
},
{
key
:
'
startedAt
'
,
label
:
s__
(
'
AlertManagement|Start time
'
),
tdClass
,
},
{
key
:
'
endedAt
'
,
label
:
s__
(
'
AlertManagement|End time
'
),
tdClass
,
},
{
key
:
'
title
'
,
label
:
s__
(
'
AlertManagement|Alert
'
),
thClass
:
'
w-30p
'
,
tdClass
,
},
{
key
:
'
eventCount
'
,
label
:
s__
(
'
AlertManagement|Events
'
),
thClass
:
'
text-right event-count
'
,
tdClass
:
'
text-right event-count
'
,
tdClass
:
`
${
tdClass
}
text-md-right event-count`
,
},
{
key
:
'
status
'
,
label
:
s__
(
'
AlertManagement|Status
'
),
tdClass
:
`
${
tdClass
}
rounded-bottom text-capitalize`
,
},
],
statuses
:
{
...
...
@@ -137,8 +144,11 @@ export default {
{{
$options
.
i18n
.
errorMsg
}}
</gl-alert>
<h4
class=
"d-block d-md-none my-3"
>
{{
s__
(
'
AlertManagement|Alerts
'
)
}}
</h4>
<gl-table
class=
"mt-3"
class=
"
alert-management-table
mt-3"
:items=
"alerts"
:fields=
"$options.fields"
:show-empty=
"true"
...
...
@@ -169,6 +179,7 @@ export default {
<
template
#cell(title)=
"{ item }"
>
<div
class=
"gl-max-w-full text-truncate"
>
{{
item
.
title
}}
</div>
</
template
>
<
template
#cell(status)=
"{ item }"
>
<gl-new-dropdown
class=
"w-100"
:text=
"item.status"
>
<gl-new-dropdown-item
v-for=
"(label, field) in $options.statuses"
:key=
"field"
>
...
...
app/assets/stylesheets/pages/alerts_list.scss
View file @
a6cec3bb
...
...
@@ -53,4 +53,25 @@
}
}
}
@include
media-breakpoint-down
(
sm
)
{
.alert-management-table
{
.table-col
{
min-height
:
68px
;
&
:last-child
{
background-color
:
$gray-normal
;
&
:
:
before
{
content
:
none
!
important
;
}
div
{
width
:
100%
!
important
;
padding
:
0
!
important
;
}
}
}
}
}
}
changelogs/unreleased/214522-list.yml
0 → 100644
View file @
a6cec3bb
---
title
:
Alert Management mobile styling
merge_request
:
31082
author
:
type
:
other
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