Revize e5640707
Přidáno uživatelem Jan Pašek před téměř 4 roky(ů)
static/js/certificate.js | ||
---|---|---|
8 | 8 |
loading: true, |
9 | 9 |
error: false, |
10 | 10 |
id: null, |
11 |
displayIssuer: false, |
|
12 |
issuerLoaded: false, |
|
11 | 13 |
revocationReason: "unspecified", |
12 | 14 |
issuedCertificates: [], |
13 | 15 |
certificate: { |
... | ... | |
29 | 31 |
SSL: false, |
30 | 32 |
}, |
31 | 33 |
CA: null, |
34 |
status: "", |
|
35 |
}, |
|
36 |
issuer: { |
|
37 |
subject: { |
|
38 |
C: "", |
|
39 |
ST: "", |
|
40 |
L: "", |
|
41 |
CN: "", |
|
42 |
O: "", |
|
43 |
OU: "", |
|
44 |
emailAddress: "", |
|
45 |
}, |
|
46 |
notBefore: "", |
|
47 |
notAfter: "", |
|
48 |
usage: { |
|
49 |
CA: false, |
|
50 |
authentication: false, |
|
51 |
digitalSignature: false, |
|
52 |
SSL: false, |
|
53 |
}, |
|
54 |
CA: null, |
|
55 |
status: "", |
|
32 | 56 |
}, |
33 | 57 |
errorMessage: "", |
34 | 58 |
successMessage: "", |
... | ... | |
52 | 76 |
}, |
53 | 77 |
watch: {}, |
54 | 78 |
methods: { |
79 |
onShowIssuer: async function() { |
|
80 |
this.displayIssuer = ~this.displayIssuer; |
|
81 |
if (!this.issuerLoaded) { |
|
82 |
// query certificate details |
|
83 |
try { |
|
84 |
const response = await axios.get(API_URL + "certificates/" + this.certificate.CA + "/details"); |
|
85 |
if (response.data["success"]) { |
|
86 |
// display certificate |
|
87 |
certificateDetailsApp.issuer = response.data["data"]; |
|
88 |
this.issuerLoaded = true; |
|
89 |
} else { |
|
90 |
// certificate does not exists |
|
91 |
console.error("Required certificate does not exists"); |
|
92 |
this.showError("Error occurred while loading issuer's details."); |
|
93 |
} |
|
94 |
} catch (error) { |
|
95 |
console.error(error); |
|
96 |
this.showError("Error occurred while loading issuer's details."); |
|
97 |
} |
|
98 |
} |
|
99 |
}, |
|
55 | 100 |
onCertificateDownload: async function () { |
56 | 101 |
await onCertificateDownload(this.id); |
57 | 102 |
}, |
Také k dispozici: Unified diff
Re #8706 - Added status adn issuer details to certificate details view