feat: 🎸 Fix text and persist windows notification (#2330)

✅ Closes: https://hashicorp.atlassian.net/browse/ICU-13977
This commit is contained in:
Zhihe Li committed 2024-06-12 16:40:19 -04:00
1 parent f20723df37
commit bca65d8d5a
2 files changed
+9 -1

No files matched your search

@@ -130,6 +130,8 @@ export default class ScopesScopeProjectsRoute extends Route {
}),
{
body: this.intl.t('notifications.connected-to-target.description'),
// This only has an effect on windows
requireInteraction: true,
},
).onclick = async () => {
let orgScope = 'global';
+7 -1
View File
@@ -31,7 +31,7 @@ const clientDaemonManager = require('./services/client-daemon-manager');
const menu = require('./config/menu.js');
const appUpdater = require('./helpers/app-updater.js');
const { isMac, isLinux } = require('./helpers/platform.js');
const { isMac, isLinux, isWindows } = require('./helpers/platform.js');
const fixPath = require('./utils/fixPath');
const isDev = require('electron-is-dev');
@@ -65,6 +65,12 @@ log.transports.file.fileName = 'desktop-client.log';
// Set the max file size to 10MB
log.transports.file.maxSize = 10485760;
if (isWindows()) {
// Set the app user model ID to the app name as it will display the ID
// in any notifications on windows unless a squirrel installation is used.
app.setAppUserModelId(app.name);
}
const createWindow = (partition, closeWindowCB) => {
/**
* Enable electron OS window frame/chrome for MacOS only.