Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
passwords
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Thomas Pulzer
passwords
Commits
9cc0e39f
Unverified
Commit
9cc0e39f
authored
7 years ago
by
Marius David Wieschollek
Browse files
Options
Downloads
Patches
Plain Diff
Fixed broken click actions
parent
f25b42de
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
docker/php/Dockerfile
+2
-0
2 additions, 0 deletions
docker/php/Dockerfile
src/lib/Controller/Api/PasswordApiController.php
+1
-0
1 addition, 0 deletions
src/lib/Controller/Api/PasswordApiController.php
src/vue/Line/Password.vue
+14
-19
14 additions, 19 deletions
src/vue/Line/Password.vue
with
17 additions
and
19 deletions
docker/php/Dockerfile
+
2
−
0
View file @
9cc0e39f
...
...
@@ -6,6 +6,8 @@ RUN apt-get update -y && \
libxrender1
\
libfontconfig1
\
libxext6
\
xfonts-base
\
xfonts-75dpi
\
wbritish
\
wamerican
\
wngerman
\
...
...
This diff is collapsed.
Click to expand it.
src/lib/Controller/Api/PasswordApiController.php
+
1
−
0
View file @
9cc0e39f
...
...
@@ -116,6 +116,7 @@ class PasswordApiController extends AbstractObjectApiController {
*
* @return JSONResponse
* @throws ApiException
* @throws \Exception
*/
public
function
create
(
string
$password
,
...
...
This diff is collapsed.
Click to expand it.
src/vue/Line/Password.vue
+
14
−
19
View file @
9cc0e39f
...
...
@@ -21,9 +21,9 @@
<slot
name=
"menu-top"
/>
<translate
tag=
"li"
@
click=
"detailsAction($event)"
icon=
"info"
say=
"Details"
/>
<translate
tag=
"li"
@
click=
"editAction()"
icon=
"pencil"
v-if=
"password.editable"
say=
"Edit"
/>
<translate
tag=
"li"
v-if=
"showCopyOptions"
@
click=
"copy
PasswordAction(
)"
icon=
"clipboard"
say=
"Copy Password"
/>
<translate
tag=
"li"
v-if=
"showCopyOptions"
@
click=
"copy
Username
Action()"
icon=
"clipboard"
say=
"Copy User"
/>
<translate
tag=
"li"
v-if=
"password.url"
@
click=
"copy
Url
Action()"
icon=
"clipboard"
say=
"Copy Url"
/>
<translate
tag=
"li"
v-if=
"showCopyOptions"
@
click=
"copy
Action('password'
)"
icon=
"clipboard"
say=
"Copy Password"
/>
<translate
tag=
"li"
v-if=
"showCopyOptions"
@
click=
"copyAction(
'user'
)"
icon=
"clipboard"
say=
"Copy User"
/>
<translate
tag=
"li"
v-if=
"password.url"
@
click=
"copyAction(
'url'
)"
icon=
"clipboard"
say=
"Copy Url"
/>
<li
v-if=
"password.url"
>
<translate
tag=
"a"
:href=
"password.url"
target=
"_blank"
icon=
"link"
say=
"Open Url"
/>
</li>
...
...
@@ -127,29 +127,24 @@
if
(
this
.
clickTimeout
)
clearTimeout
(
this
.
clickTimeout
);
let
action
=
SettingsManager
.
get
(
'
client.ui.password.click.action
'
);
if
(
this
.
runClickAction
(
action
))
{
this
.
clickTimeout
=
setTimeout
(
function
()
{
Messages
.
notification
([
'
{element} was copied to clipboard
'
,
{
element
:
Localisation
.
translate
(
action
.
capitalize
())}]);
},
300
);
}
this
.
runClickAction
(
action
,
300
);
},
doubleClickAction
(
$event
)
{
if
(
$event
&&
$
(
$event
.
target
).
closest
(
'
.more
'
).
length
!==
0
)
return
;
if
(
this
.
clickTimeout
)
clearTimeout
(
this
.
clickTimeout
);
let
action
=
SettingsManager
.
get
(
'
client.ui.password.dblClick.action
'
);
if
(
this
.
runClickAction
(
action
))
{
Messages
.
notification
([
'
{element} was copied to clipboard
'
,
{
element
:
Localisation
.
translate
(
action
.
capitalize
())}]);
}
this
.
runClickAction
(
action
);
},
runClickAction
(
action
,
delay
=
0
)
{
if
(
action
!==
'
details
'
)
this
.
copyAction
(
action
,
delay
);
if
(
action
===
'
details
'
)
this
.
clickTimeout
=
setTimeout
(
this
.
detailsAction
,
delay
);
},
runClickAction
(
action
)
{
if
(
action
===
'
password
'
)
Utility
.
copyToClipboard
(
this
.
password
.
password
);
if
(
action
===
'
username
'
)
Utility
.
copyToClipboard
(
this
.
password
.
username
);
if
(
action
===
'
details
'
)
this
.
detailsAction
();
if
(
action
===
'
url
'
)
Utility
.
copyToClipboard
(
this
.
password
.
url
);
return
action
!==
'
details
'
;
copyAction
(
attribute
,
delay
=
0
)
{
Utility
.
copyToClipboard
(
this
.
password
[
attribute
]);
this
.
clickTimeout
=
setTimeout
(()
=>
{
Messages
.
notification
([
'
{element} was copied to clipboard
'
,
{
element
:
Localisation
.
translate
(
attribute
.
capitalize
())}]);
},
delay
);
},
favoriteAction
(
$event
)
{
$event
.
stopPropagation
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment