Implemented user profile settings, OAuth apps, and maintenance windows. Other minor fixes/improvements
This commit is contained in:
1 parent
a020009c47
commit
c58e2fc545
48 files changed
+3152
-36
No files matched your search
@@ -618,6 +618,15 @@ import { settings, elements, apiDelete, apiGet, apiPost, eventTitles, parseParam
|
||||
if (!data.notifications[i].entity || data.notifications[i].entity.type != "linode" || data.notifications[i].entity.id != data.params.lid)
|
||||
continue;
|
||||
|
||||
if (data.notifications[i].type == "maintenance") {
|
||||
var now = new Date();
|
||||
var maintStart = new Date(data.notifications[i].when + "Z");
|
||||
data.notifications[i].label = "Maintenance Scheduled";
|
||||
data.notifications[i].message = "This Linode's physical host will be undergoing maintenance on " + maintStart.toLocaleString() + " (in " + timeString(maintStart - now, false) + ").";
|
||||
data.notifications[i].message += " During this time, your Linode will be shut down and remain offline, then returned to its last state (running or powered off).";
|
||||
data.notifications[i].message += " For more information, please see your open support tickets.";
|
||||
}
|
||||
|
||||
var notification = document.createElement("div");
|
||||
notification.className = elements.notification;
|
||||
var header = document.createElement("h1");
|
||||
|
||||
Reference in new issue
Block a user