Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
1cfaf2f9
Commit
1cfaf2f9
authored
Mar 21, 2019
by
Grandschtroumpf
Committed by
François
Mar 21, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add description and reset
parent
a2fdf12a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
8 deletions
+30
-8
persmission-handler.js
src/persmission-handler.js
+30
-8
No files found.
src/persmission-handler.js
View file @
1cfaf2f9
...
@@ -6,8 +6,17 @@ const modalDialog = require('./app/ui/modaldialog')
...
@@ -6,8 +6,17 @@ const modalDialog = require('./app/ui/modaldialog')
const
css
=
csjs
`
const
css
=
csjs
`
.permission h4 {
.permission h4 {
text-transform: uppercase;
text-align: center;
text-align: center;
}
}
.permission h6 {
text-transform: uppercase;
}
.remember {
display: flex;
justify-content: space-between;
align-items: center;
}
.images {
.images {
display: flex;
display: flex;
justify-content: center;
justify-content: center;
...
@@ -18,8 +27,8 @@ const css = csjs`
...
@@ -18,8 +27,8 @@ const css = csjs`
width: 40px;
width: 40px;
height: 40px;
height: 40px;
}
}
.images
span
{
.images
i
{
mar
ig
n: 0 20px;
mar
gi
n: 0 20px;
}
}
`
`
...
@@ -41,6 +50,7 @@ export class PermissionHandler {
...
@@ -41,6 +50,7 @@ export class PermissionHandler {
clear
()
{
clear
()
{
localStorage
.
removeItem
(
'plugins/permissions'
)
localStorage
.
removeItem
(
'plugins/permissions'
)
addTooltip
(
'All Permissions have been reset'
)
}
}
/**
/**
...
@@ -125,14 +135,26 @@ export class PermissionHandler {
...
@@ -125,14 +135,26 @@ export class PermissionHandler {
<section class="
${
css
.
permission
}
">
<section class="
${
css
.
permission
}
">
<article class="
${
css
.
images
}
">
<article class="
${
css
.
images
}
">
<img src="
${
from
.
icon
}
" />
<img src="
${
from
.
icon
}
" />
<
span> ---> </span
>
<
i class="fa fa-arrow-right"></i
>
<img src="
${
to
.
icon
}
" />
<img src="
${
to
.
icon
}
" />
</article>
</article>
<h4>
${
message
}
</h4>
<div class="custom-control custom-checkbox">
<article>
${
rememberSwitch
}
<h4>
${
message
}
:</h4>
<label class="custom-control-label" for="remember">Remember this choice</label>
<h6>
${
fromName
}
</h6>
</div>
<p>
${
from
.
description
||
yo
`<i>No description Provided</i>`
}
</p>
<h6>
${
toName
}
:</p>
<p>
${
to
.
description
||
yo
`<i>No description Provided</i>`
}
</p>
</article>
<article class="
${
css
.
remember
}
">
<div class="custom-control custom-checkbox">
${
rememberSwitch
}
<label class="custom-control-label" for="remember">Remember this choice</label>
</div>
<button class="btn btn-sm" onclick="
${
_
=>
this
.
clear
()}
">Reset all Permissions</button>
</article>
</section>
</section>
`
`
}
}
...
...
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