- Security Information
-
-
+ Security Information
+
+
- Add Security Information
-
+ {{ $vuetify.breakpoint.smAndDown ? "" : "Add Security Information" }}
+
mdi-key-plus
@@ -43,10 +59,12 @@
Identity: {{ item.details.identity }}
- Key:{{ item.details.key }}
+ Key:{{ item.details.key }}
- Public Key: {{ item.details.key }}
+ Public Key:
+ {{ item.details.key }}
- (this.securityInfos = response.data.map((c) => {
- return this.adaptToUI(c);
- }))
- )
+ this.axios.get("api/security/clients").then(
+ (response) =>
+ (this.securityInfos = response.data.map((c) => {
+ return this.adaptToUI(c);
+ }))
+ );
},
methods: {
@@ -108,8 +125,7 @@ export default {
let s = {};
s.endpoint = sec.endpoint;
s.mode = this.getMode(sec);
- if (s.mode != "unsupported" && s.mode != "x509")
- s.details = sec[s.mode];
+ if (s.mode != "unsupported" && s.mode != "x509") s.details = sec[s.mode];
return s;
},
adaptToAPI(sec) {
@@ -165,22 +181,18 @@ export default {
},
editSec(sec) {
- this.axios
- .put("api/security/clients/", this.adaptToAPI(sec))
- .then(() => {
- this.securityInfos = this.securityInfos.map((s) =>
- s.endpoint == sec.endpoint ? sec : s
- );
- this.dialogOpened = false;
- });
+ this.axios.put("api/security/clients/", this.adaptToAPI(sec)).then(() => {
+ this.securityInfos = this.securityInfos.map((s) =>
+ s.endpoint == sec.endpoint ? sec : s
+ );
+ this.dialogOpened = false;
+ });
},
deleteSec(sec) {
this.indexToRemove = this.securityInfos.indexOf(sec);
this.axios
- .delete(
- "api/security/clients/" + encodeURIComponent(sec.endpoint)
- )
+ .delete("api/security/clients/" + encodeURIComponent(sec.endpoint))
.then(() => {
this.securityInfos.splice(this.indexToRemove, 1);
});