Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 780c6d9c

Přidáno uživatelem Jan Pašek před asi 4 roky(ů)

Re #8583 - Downloading certificate keys

Zobrazit rozdíly:

static/js/certificate.js
2 2
    var certificateDetailsApp = new Vue({
3 3
        el: "#certificate-detailed-view-content",
4 4
        data: {
5
            id: null,
5 6
            certificate: {
6 7
                subject: {
7 8
                    C: "",
......
36 37
        },
37 38
        methods: {
38 39
            onCertificateDownload: function () {
39

  
40
                onCertificateDownload(this.id);
40 41
            },
41 42
            onRootDownload: function () {
42

  
43
                onCertificateRootDownload(this.id);
43 44
            },
44 45
            onChainDownload: function () {
45

  
46
                onCertificateChainDownload(this.id);
46 47
            },
47 48
            onPublicKeyDownload: function () {
48

  
49
                onPublicKeyDownload(this.id);
49 50
            },
50 51
            onPrivateKeyDownload: function () {
51

  
52
                onPrivateKeyDownload(this.id);
52 53
            },
53 54
            onRevoke: function () {
54 55

  
......
65 66
        const urlParams = new URLSearchParams(params);
66 67
        if (urlParams.get("id") != null) {
67 68
            const id = urlParams.get("id");
69
            certificateDetailsApp.id = id;
68 70
            axios.get(API_URL + "certificates/"+id+"/details")
69 71
                .then(function (response) {
70 72
                    if (response.data["success"])

Také k dispozici: Unified diff