Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 81e73700

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

Re #8583 - Improved certificate listing

Zobrazit rozdíly:

static/js/index.js
12 12
            if (params !== "") {
13 13
                const urlParams = new URLSearchParams(params);
14 14
                if (urlParams.get("success") != null) this.successMessage = urlParams.get("success");
15

  
16
                const nextURL = '/static/index.html';
17
                const nextTitle = 'X.509 Certificate Management';
18
                const nextState = { additionalInformation: 'Updated the URL with JS' };
19

  
20
                // This will create a new entry in the browser's history, without reloading
21
                window.history.pushState(nextState, nextTitle, nextURL);
22

  
23
                // This will replace the current entry in the browser's history, without reloading
24
                window.history.replaceState(nextState, nextTitle, nextURL);
15 25
            }
16 26
        }
17 27
    });
......
21 31
        .then(function (response) {
22 32
            if (response.data["success"])
23 33
                response.data["data"].forEach(item => certificateListingApp.certificates.push(item))
24
            else
25
                console.log("Error occured while loading certificate list") // TODO more action may be required
26 34
        })
27 35
        .catch(function (error) {
28 36
            console.log(error);

Také k dispozici: Unified diff