openbaton / dashboard

Dashboard of the NFVO
6 stars 6 forks source link

ShowError method #70

Closed Rizwan-Qamar closed 7 years ago

Rizwan-Qamar commented 7 years ago

showError method is not consistent. In some controllers, it takes data as the first parameter and in some status. ShowError method is not working at many places because of the mismatch.

error(function (data, status) {
                console.error('STATUS: ' + status + ' DATA: ' + data);
                showError(status, JSON.stringify(data));
            });
SORMAS-ZohaibHassan commented 7 years ago

Resolved: https://github.com/openbaton/dashboard/commit/7fe90b596f0201935b6dd78f82eb9aeb61e03cc1