Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
netvs-core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Insights
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
scc-net
netvs
netvs-core
Commits
3460300a
Commit
3460300a
authored
4 years ago
by
Janis Streib
Browse files
Options
Downloads
Patches
Plain Diff
ADD: create macauth clients
parent
a8f0e265
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#273633
passed with warnings
4 years ago
Stage: build
Stage: lint
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
frontend/src/views/macauth/MACAuth.vue
+18
-7
18 additions, 7 deletions
frontend/src/views/macauth/MACAuth.vue
with
18 additions
and
7 deletions
frontend/src/views/macauth/MACAuth.vue
+
18
−
7
View file @
3460300a
...
...
@@ -51,7 +51,7 @@
<
template
v-slot:head
(
buttons
)
>
<b-button
block
variant=
"outline-success"
:id=
"'button-create-client-' + bcd.name"
@
click=
"createClient"
>
@
click=
"createClient
(bcd)
"
>
<font-awesome-icon
:icon=
"['fas', 'plus']"
/>
</b-button>
<b-tooltip
:target=
"'button-create-client-' + bcd.name"
triggers=
"hover"
...
...
@@ -96,6 +96,10 @@
</b-collapse>
</b-card>
</template>
<DBEditor
object_fq_name=
"macauth.client"
:object_function=
"db_editor_object_function"
modal_id=
"dbeditor_macauth"
:old_data=
"db_editor_old_data"
:presets=
"db_editor_presets"
:non_optionals_order=
"['bcd_name', 'mac_addr', 'description']"
></DBEditor>
</Loading>
</div>
</template>
...
...
@@ -104,12 +108,16 @@
import
Loading
from
"
../../components/Loading
"
import
MACAuth
from
"
@/api-services/macauth.service
"
import
ApiUtil
from
'
@/util/apiutil
'
import
DBEditor
from
"
@/components/DBEditor
"
;
export
default
{
name
:
'
macauth
'
,
components
:
{
Loading
},
components
:
{
DBEditor
,
Loading
},
data
()
{
return
{
db_editor_object_function
:
'
create
'
,
db_editor_old_data
:
{},
db_editor_presets
:
{},
bcds
:
null
,
clients_by_bcd
:
null
,
macauth_fields
:
[
...
...
@@ -133,12 +141,12 @@ export default {
},
{
key
:
'
last_login_node
'
,
label
:
'
Letzer Login
Node
'
,
label
:
'
Letzer Login
-
Node
'
,
sortable
:
true
},
{
key
:
'
last_login_port
'
,
label
:
'
Letzer Login
Port
'
,
label
:
'
Letzer Login
-
Port
'
,
sortable
:
true
},
'
buttons
'
...
...
@@ -177,8 +185,11 @@ export default {
}
return
new
Date
(
Date
.
parse
(
value
)).
toLocaleString
(
'
de-DE
'
)
},
createClient
()
{
alert
(
'
TODO: DBEditor create new client
'
)
createClient
(
bcd
)
{
this
.
db_editor_function
=
'
create
'
this
.
db_editor_old_data
=
{}
this
.
db_editor_presets
=
{
'
bcd_name
'
:
bcd
.
name
}
this
.
$root
.
$emit
(
'
bv::show::modal
'
,
'
dbeditor_macauth
'
)
},
editClient
()
{
alert
(
'
TODO: DBEditor edit client
'
)
...
...
@@ -198,4 +209,4 @@ export default {
.fullwidth
.btn
{
flex
:
1
}
</
style
>
\ No newline at end of file
</
style
>
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