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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
283134a7
Commit
283134a7
authored
Nov 18, 2016
by
Alfredo Sumaran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unnecesary empty dialog
parent
4dbcf672
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
10 deletions
+0
-10
app/assets/javascripts/cycle_analytics/cycle_analytics_bundle.js
...ets/javascripts/cycle_analytics/cycle_analytics_bundle.js
+0
-6
app/views/projects/cycle_analytics/_empty_cycle_analytics.html.haml
...projects/cycle_analytics/_empty_cycle_analytics.html.haml
+0
-2
app/views/projects/cycle_analytics/show.html.haml
app/views/projects/cycle_analytics/show.html.haml
+0
-2
No files found.
app/assets/javascripts/cycle_analytics/cycle_analytics_bundle.js
View file @
283134a7
...
@@ -2,7 +2,6 @@
...
@@ -2,7 +2,6 @@
//= require_tree .
//= require_tree .
$
(()
=>
{
$
(()
=>
{
const
EMPTY_DIALOG_COOKIE
=
'
ca_empty_dialog_dismissed
'
;
const
OVERVIEW_DIALOG_COOKIE
=
'
ca_overview_dialog_dismissed
'
;
const
OVERVIEW_DIALOG_COOKIE
=
'
ca_overview_dialog_dismissed
'
;
const
cycleAnalyticsEl
=
document
.
querySelector
(
'
#cycle-analytics
'
);
const
cycleAnalyticsEl
=
document
.
querySelector
(
'
#cycle-analytics
'
);
const
cycleAnalyticsStore
=
gl
.
cycleAnalytics
.
CycleAnalyticsStore
;
const
cycleAnalyticsStore
=
gl
.
cycleAnalytics
.
CycleAnalyticsStore
;
...
@@ -20,7 +19,6 @@ $(() => {
...
@@ -20,7 +19,6 @@ $(() => {
isEmptyStage
:
false
,
isEmptyStage
:
false
,
hasError
:
false
,
hasError
:
false
,
startDate
:
30
,
startDate
:
30
,
isEmptyDialogDismissed
:
Cookies
.
get
(
EMPTY_DIALOG_COOKIE
),
isOverviewDialogDismissed
:
Cookies
.
get
(
OVERVIEW_DIALOG_COOKIE
),
isOverviewDialogDismissed
:
Cookies
.
get
(
OVERVIEW_DIALOG_COOKIE
),
},
},
computed
:
{
computed
:
{
...
@@ -104,10 +102,6 @@ $(() => {
...
@@ -104,10 +102,6 @@ $(() => {
this
.
isLoadingStage
=
false
;
this
.
isLoadingStage
=
false
;
});
});
},
},
dismissEmptyDialog
()
{
this
.
isEmptyDialogDismissed
=
true
;
Cookies
.
set
(
EMPTY_DIALOG_COOKIE
,
'
1
'
);
},
dismissOverviewDialog
()
{
dismissOverviewDialog
()
{
this
.
isOverviewDialogDismissed
=
true
;
this
.
isOverviewDialogDismissed
=
true
;
Cookies
.
set
(
OVERVIEW_DIALOG_COOKIE
,
'
1
'
);
Cookies
.
set
(
OVERVIEW_DIALOG_COOKIE
,
'
1
'
);
...
...
app/views/projects/cycle_analytics/_empty_cycle_analytics.html.haml
deleted
100644 → 0
View file @
4dbcf672
%p
There is nothing happened
=
icon
(
"times"
,
class:
"dismiss-icon"
,
"@click"
=>
"dismissEmptyDialog()"
)
app/views/projects/cycle_analytics/show.html.haml
View file @
283134a7
...
@@ -10,8 +10,6 @@
...
@@ -10,8 +10,6 @@
-
content_for
:page_specific_javascripts
do
-
content_for
:page_specific_javascripts
do
=
page_specific_javascript_tag
(
"cycle_analytics/cycle_analytics_bundle.js"
)
=
page_specific_javascript_tag
(
"cycle_analytics/cycle_analytics_bundle.js"
)
#cycle-analytics
{
class:
container_class
,
"v-cloak"
=>
"true"
,
data:
{
request_path:
project_cycle_analytics_path
(
@project
)
}
}
#cycle-analytics
{
class:
container_class
,
"v-cloak"
=>
"true"
,
data:
{
request_path:
project_cycle_analytics_path
(
@project
)
}
}
.empty-dialog-message
{
"v-if"
=>
"!isEmptyDialogDismissed"
}
=
render
partial:
"empty_cycle_analytics"
.bordered-box.landing.content-block
{
"v-if"
=>
"!isOverviewDialogDismissed"
}
.bordered-box.landing.content-block
{
"v-if"
=>
"!isOverviewDialogDismissed"
}
=
icon
(
"times"
,
class:
"dismiss-icon"
,
"@click"
=>
"dismissOverviewDialog()"
)
=
icon
(
"times"
,
class:
"dismiss-icon"
,
"@click"
=>
"dismissOverviewDialog()"
)
.row
.row
...
...
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