mirror of
https://github.com/quay/quay.git
synced 2025-04-18 10:44:06 +03:00
ui: adding under_maintenance state to status indicator (PROJQUAY-8507) (#3609)
Adding under_maintenance state to status indicator
This commit is contained in:
parent
5fdb881b0e
commit
4663a9de44
@ -28,6 +28,10 @@ angular.module('quay').factory('StatusService', ['Features', function(Features)
|
||||
indicator: 'critical',
|
||||
description: 'Major Service Outage'
|
||||
},
|
||||
under_maintenance: {
|
||||
indicator: 'minor',
|
||||
description: 'Under Maintenance',
|
||||
},
|
||||
}
|
||||
var statusPageHandler = null;
|
||||
var statusPageData = null;
|
||||
|
@ -18,3 +18,10 @@ import './commands';
|
||||
|
||||
// Alternatively you can use CommonJS syntax:
|
||||
// require('./commands')
|
||||
|
||||
beforeEach(() => {
|
||||
cy.intercept('GET', 'api/v2/summary.json', {
|
||||
statusCode: 200,
|
||||
body: {page: {}, components: []},
|
||||
}).as('getStatusData');
|
||||
});
|
||||
|
@ -20,6 +20,10 @@ const statusToIndicator = {
|
||||
indicator: 'critical',
|
||||
description: 'Major Service Outage',
|
||||
},
|
||||
under_maintenance: {
|
||||
indicator: 'minor',
|
||||
description: 'Under Maintenance',
|
||||
},
|
||||
};
|
||||
|
||||
interface StatusData {
|
||||
|
Loading…
x
Reference in New Issue
Block a user