mirror of
https://github.com/bitwarden/browser.git
synced 2025-01-03 18:28:13 +01:00
Removed unneeded alert/info functionality from notificationBar
This commit is contained in:
parent
de0e9a4d94
commit
705c287e1a
@ -104,9 +104,6 @@ export default class RuntimeBackground {
|
|||||||
case 'bgGetDataForTab':
|
case 'bgGetDataForTab':
|
||||||
await this.getDataForTab(sender.tab, msg.responseCommand);
|
await this.getDataForTab(sender.tab, msg.responseCommand);
|
||||||
break;
|
break;
|
||||||
case 'bgOpenNotificationBar':
|
|
||||||
await BrowserApi.tabSendMessageData(sender.tab, 'openNotificationBar', msg.data);
|
|
||||||
break;
|
|
||||||
case 'bgCloseNotificationBar':
|
case 'bgCloseNotificationBar':
|
||||||
await BrowserApi.tabSendMessageData(sender.tab, 'closeNotificationBar');
|
await BrowserApi.tabSendMessageData(sender.tab, 'closeNotificationBar');
|
||||||
break;
|
break;
|
||||||
|
@ -431,18 +431,6 @@ document.addEventListener('DOMContentLoaded', event => {
|
|||||||
function closeExistingAndOpenBar(type: string, typeData: any) {
|
function closeExistingAndOpenBar(type: string, typeData: any) {
|
||||||
let barPage = 'notification/bar.html';
|
let barPage = 'notification/bar.html';
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case 'info':
|
|
||||||
barPage = barPage + '?info=' + typeData.text;
|
|
||||||
break;
|
|
||||||
case 'warning':
|
|
||||||
barPage = barPage + '?warning=' + typeData.text;
|
|
||||||
break;
|
|
||||||
case 'error':
|
|
||||||
barPage = barPage + '?error=' + typeData.text;
|
|
||||||
break;
|
|
||||||
case 'success':
|
|
||||||
barPage = barPage + '?success=' + typeData.text;
|
|
||||||
break;
|
|
||||||
case 'add':
|
case 'add':
|
||||||
barPage = barPage + '?add=1&isVaultLocked=' + typeData.isVaultLocked;
|
barPage = barPage + '?add=1&isVaultLocked=' + typeData.isVaultLocked;
|
||||||
break;
|
break;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
@ -37,7 +37,6 @@
|
|||||||
<button class="change-save"></button>
|
<button class="change-save"></button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="template-alert"></div>
|
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
|
@ -126,9 +126,6 @@ document.addEventListener('DOMContentLoaded', () => {
|
|||||||
}
|
}
|
||||||
sendPlatformMessage(bgChangeSaveMessage);
|
sendPlatformMessage(bgChangeSaveMessage);
|
||||||
});
|
});
|
||||||
} else if (getQueryVariable('info')) {
|
|
||||||
setContent(document.getElementById('template-alert'));
|
|
||||||
document.getElementById('template-alert-clone').textContent = getQueryVariable('info');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
closeButton.addEventListener('click', (e) => {
|
closeButton.addEventListener('click', (e) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user