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
a3ab57df
Commit
a3ab57df
authored
Apr 27, 2020
by
lauraMon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updates with feedback
parent
aa11be4a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
1 deletion
+36
-1
app/assets/javascripts/alert_management/components/alert_details.vue
...javascripts/alert_management/components/alert_details.vue
+21
-1
app/assets/javascripts/alert_management/components/alerts.json
...ssets/javascripts/alert_management/components/alerts.json
+15
-0
No files found.
app/assets/javascripts/alert_management/components/alert_details.vue
View file @
a3ab57df
<
script
>
import
{
GlTabs
,
GlTab
}
from
'
@gitlab/ui
'
;
import
{
Gl
NewDropdown
,
GlNewDropdownItem
,
Gl
Tabs
,
GlTab
}
from
'
@gitlab/ui
'
;
import
{
s__
}
from
'
~/locale
'
;
/* eslint-disable import/no-commonjs */
const
mock
=
require
(
'
./alerts.json
'
);
export
default
{
statuses
:
{
triggered
:
s__
(
'
AlertManagement|Triggered
'
),
acknowledged
:
s__
(
'
AlertManagement|Acknowledged
'
),
ignored
:
s__
(
'
AlertManagement|Ignored
'
),
},
i18n
:
{
fullAlertDetailsTitle
:
s__
(
'
AlertManagement|Full Alert Details
'
),
overviewTitle
:
s__
(
'
AlertManagement|Overview
'
),
},
components
:
{
GlNewDropdown
,
GlNewDropdownItem
,
GlTab
,
GlTabs
,
},
...
...
@@ -33,5 +43,15 @@ export default {
<gl-tab
data-testid=
"fullDetailsTab"
:title=
"$options.i18n.fullAlertDetailsTitle"
/>
</gl-tabs>
</div>
<div
class=
"d-flex justify-content-between"
>
<gl-new-dropdown
:text=
"alertDetails[0].status"
>
<gl-new-dropdown-item
v-for=
"(label, field) in $options.statuses"
:key=
"field"
class=
"align-middle"
>
{{
label
}}
</gl-new-dropdown-item>
</gl-new-dropdown>
</div>
</div>
</
template
>
app/assets/javascripts/alert_management/components/alerts.json
0 → 100644
View file @
a3ab57df
{
"alerts"
:
[
{
"id"
:
1
,
"iid"
:
"1527542"
,
"title"
:
"SyntaxError: Invalid or unexpected token"
,
"severity"
:
"Critical"
,
"eventCount"
:
7
,
"startedAt"
:
"2020-04-17T23:18:14.996Z"
,
"endedAt"
:
"2020-04-17T23:18:14.996Z"
,
"status"
:
"triggered"
}
]
}
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