Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 586f1573

Přidáno uživatelem Jan Pašek před téměř 4 roky(ů)

Re #8706 - Downloading PKCS#12 identity

Zobrazit rozdíly:

static/js/certificate.js
12 12
        issuerLoaded: false,
13 13
        revocationReason: "unspecified",
14 14
        issuedCertificates: [],
15
        identityName: "",
16
        identityPass: "",
15 17
        certificate: {
16 18
            subject: {
17 19
                C: "",
......
112 114
        onPrivateKeyDownload: async function () {
113 115
            await onPrivateKeyDownload(this.id);
114 116
        },
117
        onIdentityDownload: async function() {
118
            this.errorMessage = "";
119
            if (this.identityName === "") {
120
                this.errorMessage = "Identity name must not be empty! Please try again.";
121
                document.body.scrollTop = 0;
122
                document.documentElement.scrollTop = 0;
123
                return;
124
            }
125
            await onIdentityDownload(this.id, this.identityName, this.identityPass);
126
        },
115 127
        onRevoke: async function () {
116 128
            document.body.scrollTop = 0;
117 129
            document.documentElement.scrollTop = 0;

Také k dispozici: Unified diff