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
7c9ab85d
Commit
7c9ab85d
authored
Jul 30, 2020
by
jakeburden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use GlModalDirective as GlModal
parent
bd874572
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
6 deletions
+3
-6
app/assets/javascripts/deploy_freeze/components/deploy_freeze_modal.vue
...ascripts/deploy_freeze/components/deploy_freeze_modal.vue
+1
-2
app/assets/javascripts/deploy_freeze/components/deploy_freeze_table.vue
...ascripts/deploy_freeze/components/deploy_freeze_table.vue
+2
-4
No files found.
app/assets/javascripts/deploy_freeze/components/deploy_freeze_modal.vue
View file @
7c9ab85d
...
...
@@ -3,7 +3,6 @@ import { GlFormGroup, GlFormInput, GlModal, GlSprintf, GlLink } from '@gitlab/ui
import
{
mapActions
,
mapState
}
from
'
vuex
'
;
import
{
mapComputed
}
from
'
~/vuex_shared/bindings
'
;
import
{
__
}
from
'
~/locale
'
;
import
{
MODAL_ID
}
from
'
../utils/constants
'
;
import
TimezoneDropdown
from
'
~/vue_shared/components/timezone_dropdown.vue
'
;
import
{
isValidCron
}
from
'
cron-validator
'
;
...
...
@@ -18,7 +17,7 @@ export default {
},
modalOptions
:
{
ref
:
'
modal
'
,
modalId
:
MODAL_ID
,
modalId
:
'
deploy-freeze-modal
'
,
title
:
__
(
'
Add deploy freeze
'
),
actionCancel
:
{
text
:
__
(
'
Cancel
'
),
...
...
app/assets/javascripts/deploy_freeze/components/deploy_freeze_table.vue
View file @
7c9ab85d
...
...
@@ -2,10 +2,8 @@
import
{
GlTable
,
GlButton
,
GlModalDirective
,
GlSprintf
}
from
'
@gitlab/ui
'
;
import
{
s__
,
__
}
from
'
~/locale
'
;
import
{
mapState
,
mapActions
}
from
'
vuex
'
;
import
{
MODAL_ID
}
from
'
../utils/constants
'
;
export
default
{
modalId
:
MODAL_ID
,
fields
:
[
{
key
:
'
freezeStart
'
,
...
...
@@ -29,7 +27,7 @@ export default {
GlSprintf
,
},
directives
:
{
GlModalDirective
,
GlModal
:
GlModal
Directive
,
},
computed
:
{
...
mapState
([
'
freezePeriods
'
]),
...
...
@@ -73,7 +71,7 @@ export default {
</gl-table>
<div
class=
"gl-display-flex gl-justify-content-center"
>
<gl-button
v-gl-modal
-directive=
"$options.modalId"
v-gl-modal
.
deploy-freeze-modal
data-testid=
"add-deploy-freeze"
category=
"primary"
variant=
"success"
...
...
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