From 955c34ae4e4a6e6f351e5767b9d82b2f5757e772 Mon Sep 17 00:00:00 2001 From: Bill Thornton Date: Thu, 19 Nov 2020 17:38:49 -0500 Subject: [PATCH] Fix confirm.default calls --- src/components/recordingcreator/recordinghelper.js | 4 ++-- src/controllers/dashboard/plugins/installed/index.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/recordingcreator/recordinghelper.js b/src/components/recordingcreator/recordinghelper.js index 2a7682a4e6..1e999ce35c 100644 --- a/src/components/recordingcreator/recordinghelper.js +++ b/src/components/recordingcreator/recordinghelper.js @@ -32,7 +32,7 @@ function changeRecordingToSeries(apiClient, timerId, programId, confirmTimerCanc function cancelTimerWithConfirmation(timerId, serverId) { return new Promise(function (resolve, reject) { - confirm.default({ + confirm({ text: globalize.translate('MessageConfirmRecordingCancellation'), primary: 'delete', @@ -50,7 +50,7 @@ function cancelTimerWithConfirmation(timerId, serverId) { function cancelSeriesTimerWithConfirmation(timerId, serverId) { return new Promise(function (resolve, reject) { - confirm.default({ + confirm({ text: globalize.translate('MessageConfirmRecordingCancellation'), primary: 'delete', diff --git a/src/controllers/dashboard/plugins/installed/index.js b/src/controllers/dashboard/plugins/installed/index.js index d224268975..226ae0defe 100644 --- a/src/controllers/dashboard/plugins/installed/index.js +++ b/src/controllers/dashboard/plugins/installed/index.js @@ -10,7 +10,7 @@ import confirm from '../../../../components/confirm/confirm'; function deletePlugin(page, uniqueid, name) { const msg = globalize.translate('UninstallPluginConfirmation', name); - confirm.default({ + confirm({ title: globalize.translate('HeaderUninstallPlugin'), text: msg, primary: 'delete',