Remove unused code for old "todo"

This commit is contained in:
QuickMythril
2024-01-15 05:03:35 -05:00
parent 00ad2b88d5
commit abe344016c
24 changed files with 2 additions and 45 deletions

View File

@@ -13,7 +13,6 @@ class NotificationsView extends connect(store)(LitElement) {
return {
notificationConfig: { type: Object },
q_chatConfig: { type: Object },
blockConfig: { type: Object },
theme: { type: String, reflect: true },
appNotificationList: {type: Array}
}
@@ -23,7 +22,6 @@ class NotificationsView extends connect(store)(LitElement) {
super()
this.notificationConfig = {}
this.q_chatConfig = {}
this.blockConfig = {}
this.theme = localStorage.getItem('qortalTheme') ? localStorage.getItem('qortalTheme') : 'light'
this.appNotificationList = [] // Fetch the list of apps from local storage
}
@@ -151,19 +149,6 @@ class NotificationsView extends connect(store)(LitElement) {
</div>
</div>
<div class="content-box">
<h4> ${translate("settings.block")} </h4>
<div style="line-height: 3rem;">
<mwc-checkbox indeterminate disabled id="blockPlaySound"></mwc-checkbox>
<label for="blockPlaySound">${translate("settings.playsound")}</label>
</div>
<div style="line-height: 3rem;">
<mwc-checkbox indeterminate disabled id="blockShowNotification"></mwc-checkbox>
<label for="blockShowNotification">${translate("settings.shownotifications")}</label>
</div>
</div>
<div class="content-box">
<h4>${translate("settings.qappNotification1")}</h4>
${this.appNotificationList.map((app)=> html`
<div style="display: flex; justify-content: space-between; margin-top: 10px;">
@@ -223,7 +208,6 @@ class NotificationsView extends connect(store)(LitElement) {
stateChanged(state) {
this.notificationConfig = state.user.notifications
this.q_chatConfig = this.notificationConfig.q_chat
this.blockConfig = this.notificationConfig.block
}
setQChatNotificationConfig(valueObject) {

View File

@@ -13,11 +13,9 @@ export const doLoadNotificationConfig = () => {
.then(data => {
const notifications = {
q_chat: {},
block: {}
q_chat: {}
}
notifications.q_chat = data.config.user.notifications.q_chat
notifications.block = data.config.user.notifications.block
return dispatch(loadNotificationConfig(notifications))
})
.catch(err => {

View File

@@ -15,8 +15,7 @@ const DEFAULT_INITIAL_STATE = {
// nameStatus: ''
},
notifications: {
q_chat: {},
block: {}
q_chat: {}
},
loaded: false
}