use new style for all warning dialogs

This commit is contained in:
dkanada 2019-09-06 02:02:58 -07:00
parent f862838458
commit e8ae9b3605
2 changed files with 4 additions and 4 deletions

View File

@ -37,7 +37,7 @@ define(['globalize', 'loading', 'connectionManager'], function (globalize, loadi
confirm({ confirm({
text: globalize.translate('MessageConfirmRecordingCancellation'), text: globalize.translate('MessageConfirmRecordingCancellation'),
primary: 'cancel', primary: 'delete',
confirmText: globalize.translate('HeaderCancelRecording'), confirmText: globalize.translate('HeaderCancelRecording'),
cancelText: globalize.translate('HeaderKeepRecording') cancelText: globalize.translate('HeaderKeepRecording')
@ -62,7 +62,7 @@ define(['globalize', 'loading', 'connectionManager'], function (globalize, loadi
confirm({ confirm({
text: globalize.translate('MessageConfirmRecordingCancellation'), text: globalize.translate('MessageConfirmRecordingCancellation'),
primary: 'cancel', primary: 'delete',
confirmText: globalize.translate('HeaderCancelSeries'), confirmText: globalize.translate('HeaderCancelSeries'),
cancelText: globalize.translate('HeaderKeepSeries') cancelText: globalize.translate('HeaderKeepSeries')

View File

@ -707,7 +707,7 @@ define(["datetime", "events", "itemHelper", "serverNotifications", "dom", "globa
title: globalize.translate("HeaderRestart"), title: globalize.translate("HeaderRestart"),
text: globalize.translate("MessageConfirmRestart"), text: globalize.translate("MessageConfirmRestart"),
confirmText: globalize.translate("ButtonRestart"), confirmText: globalize.translate("ButtonRestart"),
primary: "cancel" primary: "delete"
}).then(function () { }).then(function () {
var page = dom.parentWithClass(btn, "page"); var page = dom.parentWithClass(btn, "page");
buttonEnabled(page.querySelector("#btnRestartServer"), false); buttonEnabled(page.querySelector("#btnRestartServer"), false);
@ -722,7 +722,7 @@ define(["datetime", "events", "itemHelper", "serverNotifications", "dom", "globa
title: globalize.translate("HeaderShutdown"), title: globalize.translate("HeaderShutdown"),
text: globalize.translate("MessageConfirmShutdown"), text: globalize.translate("MessageConfirmShutdown"),
confirmText: globalize.translate("ButtonShutdown"), confirmText: globalize.translate("ButtonShutdown"),
primary: "cancel" primary: "delete"
}).then(function () { }).then(function () {
var page = dom.parentWithClass(btn, "page"); var page = dom.parentWithClass(btn, "page");
buttonEnabled(page.querySelector("#btnRestartServer"), false); buttonEnabled(page.querySelector("#btnRestartServer"), false);